ProdanTenev

num100to200

Feb 11th, 2022 (edited)
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.28 KB | None | 0 0
  1. function numberLocation(input) {
  2.     let num = Number(input[0]);
  3.     if (num < 100) {
  4.         console.log("Less than 100");
  5.     } else if (num > 200) {
  6.         console.log("Greater than 200");
  7.     } else if (100 <= num <= 200) {
  8.         console.log("Between 100 and 200");
  9.     }
  10. }
Add Comment
Please, Sign In to add comment