Lesson 4/33 SyntaxError: unterminated string literal error


#1

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;
};

};

The code above creates an error "SyntaxError: unterminated string literal". Please help.


#2

The Lion King is missing a " .
and we don't use break after default.


#3

Thank you. Can't believe I missed :joy: