Something must be wrong with the interpreter


#1


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


It keeps telling me "Oops try again. Check the Review for Toy Story 2." I have written in all the options and am keeping the right answers


var movie = prompt("What movie would you like the 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!";
    }
};
getReview(movie)


#2

You forgot the period for the review for Toy Story 2.
You should also put the name of a movie when you call the function. Not just (movie)


#3

And a semi colon after the function call.


#4

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