Advertisement
vborislavova

05. Number 100...200 - Conditional Statements

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