4. I have to celebrate you


#1


https://www.codecademy.com/courses/spencer-sandbox/0/4?curriculum_id=506324b3a7dffd00020bf661#


Program prints what it should be printing. but at the end it is showing: Oops, try again. Check the review of Toy Story 2. please help me where have I done something wrong?


var movie = prompt("Which movie is the best? Toy Story 2, Finding Nemo or The Lion King?");
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!";
            break;
    }   
};
getReview(movie);


#2

case "Toy Story 2":
return "Great story.Mean prospector.";

You forgot to put a space between the period and the word "Mean"...

case "Finding Nemo":
return "Cool animation,and funny turtles.";

Same with this one, put a space after the comma


#3

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