Advertisement
tr00per92

10-digitChecker

Jul 15th, 2014
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function checkDigit(num) {
  2.     return Math.floor(num/100) % 10 == 3;
  3. }
  4. console.log(checkDigit(1235));
  5. console.log(checkDigit(25368));
  6. console.log(checkDigit(123456));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement