Advertisement
Didart

Number 100 To 200

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