4. I have to celebrate you baby. Not working


#1

This is my code:
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!";
}

};

getReview("Finding Nemo")

It displays the review, but still says "Oops, try again. Check the review of Finding Nemo"


#2

You are missing period " . "

in the reviews of lion king and finding nemo..
The lecture only recognizes the EXACT correct format....
:smile: So nothing u did wrong


#3

Here's fixed soluition :smile:
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!";
}

};

getReview("Finding Nemo")