4. I have to celebrate you baby - please help


#1


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


SyntaxError: Unexpected end of input
Oops, try again. There was a problem with your syntax.

Anyone know what I am doing wrong? Thanks in advance!


var getReview = function (movie) {
    switch(movie) {
        
        case "Toy Story 2":
            return "Great story. Mean prospector.";
        break;
        
        case "Finding Nemo":
            return "Cool animaton, and funny turtles.";
        break;
        
        case "The Lion King":
            return "Great songs.";
        break;
        
        default:
            return "I don't know!";
        break;
};


#2

Nevermind I forgot to include an additional closing bracket }


#3

Hello. Even though you have it sorted already, I would like to just add that you don't need to use "break;" under "default".


#4

Thank you very much for that insight


#5

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