Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function evenOrOdd(input) {
- let number = parseInt(input[0]);
- if (number % 2 == 0) {
- console.log('even');
- } else {
- console.log('odd');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement