I have to celebrrate you baby


#1

what's wrong with my code? It gives an error message as "Check review of Toy Story 2". here's my code:-
var reply= prompt("Toy Story 2, Finding Nemo, The Lion King");
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!";
}
};
getReview(reply);


#2

The error is quite silly. You need to copy the returned review word for word, with the same punktuations.

It's just the way the exercise is testing your code.


#3

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