-
-
Save codecademydev/71a1271576a60eccb8705e8343275951 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 getReview = function (movie) { | |
switch(movie) { | |
case 'Toy Story 2': | |
return "Great story. Mean prospector."; | |
break; | |
case 'Finding Nemo': | |
return "Cool animation, and funny turtles."; | |
break; | |
case 'The Lion King': | |
return "Great songs."; | |
break; | |
default: | |
return "I don't know!"; | |
break; | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment