What's wrong with my syntax?


Here's a link to where I'm stuck.

SyntaxError: Unexpected end of input

var getReview = function (movie) {
switch(movie) {
    case "Toy Story 2":
        return "Great Story. Mean prospector.";
    case "Finding Nemo":
        return "Cool animation, and funny turtles.";
    case "The Lion King":
        return "Great songs";
        return "I don't know what your talking about";

what's wrong with this code?


you forgot to add a closing curly bracket to end your function


oh... Thanks that was dumb of me to create a topic for such a stupid mistake...


the easier the mistake, the more difficult it is to find


oh thanks for the help! :smile:


2 posts were split to a new topic: Rectagnle