-
-
Save codecademydev/097bf48f4319b6c92f68475fda2edba9 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var answer = prompt("How many days in month?"); | |
switch(answer) { | |
case 'January' || 'March' || 'May' || 'July' || 'August' || 'October' || 'December': | |
console.log("It is a 31 days month"); | |
break; | |
case 'February': | |
console.log("February is 28/29 days month"); | |
break; | |
case 'April' || 'June' || 'September' || 'November': | |
console.log("It is a 30 days month"); | |
break; | |
default: | |
console.log("I am not sure, please check your spelling"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment