I have to celebrate you baby


#1

Hi
What's wrong with it?
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 "I don't know";

}

};

getReview ("Toy Story 2");


#2

default: return "I donnt know"


#3

thx I try it but it's still SyntaxError: Invalid or unexpected token


#4

I even try to refresh my browser but it doesn't help :((


#5

default:
return"I don't know!";


#6

I think the error here was that you forgot ( : ) colon after "default"


#7

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