Answers for "how to write a range of numbers in if condition js"

0

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 ;

}
Posted by: Guest on February-21-2021

Code answers related to "how to write a range of numbers in if condition js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language