Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let input = [
- '6',
- ];
- let print = this.print || console.log;
- let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
- let day = +gets();
- switch (day) {
- case 1:
- console.log('Monday');
- break;
- case 2:
- console.log('Tuesday');
- break;
- case 3:
- console.log('Wednesday');
- break;
- case 4:
- console.log('Thursday');
- break;
- case 5:
- console.log('Friday');
- break;
- case 6:
- console.log('Saturday');
- break;
- case 7:
- console.log('Sunday');
- break;
- default:
- console.log('Invalid day');
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement