javascript in range condition code example
Example: how to write a range of numbers in if condition js
function between(value,first,last) {
let lower = Math.min(first,last) , upper = Math.max(first,last);
return value >= lower && value <= upper ;
}