What's wrong with my syntax?


#1


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";
    default:
        return "I don't know what your talking about";
};

what's wrong with this code?
:confused:


#2

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


#3

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


#4

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


#5

oh thanks for the help! :smile:


#7

2 posts were split to a new topic: Rectagnle


#8