Not able to find the error


#1

var getReview = function (movie) {
switch (movie) {
case "Toy Story 2":
return "Great story. Mean prospector.";
case "Finding Nemo":
return "Cool animation, and funny turtles.";
case "The Lion King":
return "Great songs";
default:
return "I don't know!";
}
};

getReview("Toy Story 2");

what's wrong with my code?
thanks!


#2

Hi,

looks like you just missed a period (full stop) in the lion king review. If you change it to this -

case "The Lion King":
return "Great songs.";

it should work

Thanks

Keith