Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let input = [
- '100',
- ];
- let print = this.print || console.log;
- let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
- let number = +gets();
- if (number % 2 === 0) {
- console.log('This number is even.');
- } else {
- console.log('This number is odd.');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement