Advertisement
AreWe

num 100 200 1

Jan 20th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. (input) => {
  2. const num = Number(input.shift());
  3. if(num < 100) console.log('Less than 100');
  4. else if(num <= 200) console.log('Between 100 and 200');
  5. else console.log('Greater than 200');
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement