Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created November 11, 2016 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/a5979209db2226fcc59261725f240a69 to your computer and use it in GitHub Desktop.
Save codecademydev/a5979209db2226fcc59261725f240a69 to your computer and use it in GitHub Desktop.
Codecademy export
var getReview = function (movie)
{
var movie = prompt("What`s your favourit 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(name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment