-
-
Save codecademydev/11877d75dc168d9d12f84f1f87da25ba 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 movie = prompt("Search for a movie review"); | |
var getReview = function (movie) { | |
var 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"; | |
}; | |
}; | |
getReview(movie); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment