Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let moonPhase = 'full';
- switch (moonPhase) {
- case 'full':
- console.log('Howl!');
- break;
- case 'mostly full':
- console.log('Arms and legs are getting hairier');
- break;
- case 'mostly new':
- console.log('Back on two feet');
- break;
- default:
- console.log('Invalid moon phase!');
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement