I have to celebrate you baby


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



getReview ("Toy Story 2");


default: return "I donnt know"


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


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


return"I don't know!";


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


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