How to check if a number is between two numbers in TypeScript

1 Answer

0 votes
const num = 18;

const a = 7;
const b = 189
if (num > a && num < b) {
  	console.log('yes');
} else {
  	console.log('no');
}



      
      
/*
run:
      
"yes"
        
*/

 



answered Jun 28, 2022 by avibootz
...