4. I have to celebrate you baby - Help Please!


#1

My code returns the review for Toy Story 2, but it says "Check the review of Toy Story 2"

var name = prompt("Which movie would you like to review?");
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!");
}
};
console.log(getReview(name));


#2

Remember as you go through, you have to write the text exactly. It may be wanting the full stop after prospector:
return("Great story. Mean prospector.");

If that doesn't work, another option is to use full quotes rather than single on, iow
case "Toy Story 2":


#3

You were right, it wanted the full stop. Thank you!