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