Advertisement
Spocoman

10. Invalid Number

Dec 19th, 2021 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function invalidNumber(number) {
  2.  
  3.     let num = Number(number[0]);
  4.  
  5.     if (num < 100 && num !== 0 || num > 200 ) {
  6.         console.log('invalid');
  7.     }
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement