Stuck keep saying check review of toy story 2?


#1

This is what I have so far but keeps saying to check review for Toy Story 2???

var name = prompt("Enter 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!";
}
};
getReview(name);


#2

Check this.
It is worked.

var choice = prompt("What is the movie you want a review for?");

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(choice));


#3

thanks for response, I finally got my code to work. I am finally realizing it is always best to copy/paste when it comes to any of the text that you are supposed to be working with. So when they say the review should be this: Copy the exact text they list otherwise the editor will just keep throwing errors even though you have your syntax correct.. :smile:


#4

thanks for your answer .