Advertisement
Aleksandar_Katsarov

Untitled

Oct 10th, 2021
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function numberRange(input){
  2.     let num = Number(input[0]);
  3.    
  4.     if(num<100){
  5.         console.log('Less than 100');
  6.     }
  7.         else if(100<num && 200>num){
  8.             console.log('Between 100 and 200');
  9.         }
  10.         else{
  11.             console.log('Greater than 200');
  12.         }
  13. }
  14. numberRange(["105"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement