Oops, try again. Check the review of The Lion King / Finding Nemo / Toy Story 3 – Codeacademy

This is a funny error. If you miss the dot from the end of the sentence or you type the review texts wrong, you will get either of these errors:

Oops, try again. Check the review of The Lion King / Finding Nemo / Toy Story 3.

Here is a correct code:

var movie = prompt(“Name of the movie”);

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;

}
};

getReview(movie);

If you have questions, leave in the comments.

html-and-css-on-codeacademy

ADD A COMMENT: