Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkDigit(num) {
- return Math.floor(num/100) % 10 == 3;
- }
- console.log(checkDigit(1235));
- console.log(checkDigit(25368));
- console.log(checkDigit(123456));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement