I have to celebrate you baby


#1

Error Message: Oops, try again. There was a problem with your syntax.

I've looked at A LOT of the Q & A's, but I can't figure out what I did wrong. Please Help!

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


#2

Hi these lines..

return: "Great songs.";
return: "I don't know!";

You have a : after return remove it


#3

Oh... Thanks! Can't belive I missed that.


#4

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