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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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: