I get an error


#1


 anyone can check my code.I get an error...
var movie=prompt("movie review list: Toy story2,finding nemo,the lion king...");
var getReview = function (movie) {
switch (movie){
case "Toy Story 2":
return "Great story,Mean prospector";
case 'Finding Nemo':
return "Cool animation,and funny turtles";
break;
case 'The Lion King':
return "Greet songs.";
break;
default :
return "I don't know!";
break;
}
};
getReview(movie);

Error: Oops, try again. Check the review of Toy Story 2


#2

Hi the string in the return statement of the Toy story 2 case

return "Great story,Mean prospector";

should be like the one they gave you


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.