Checks to see if the number is in the range. - Node.js Number

Node.js examples for Number:Range

Description

Checks to see if the number is in the range.

Demo Code

//Checks to see if the number is in the range.
function isRange(a_num, min, max){
  if (a_num < min || a_num > max) {
    return false;
  }else{//from ww  w .ja va  2  s  .co m
    return true;
  }  
}

Related Tutorials