4. I have to celebrate you baby


#1

Hi,

I am working on this lesson and I am constantly getting am error of [Oops, try again. Check the review of Finding Nemo.] Can someone please check my code and tell what I am doing wrong.

Thanks

var answer = prompt ("Toy Story 2, Finding Nemo, or The Lion King");

var answer = prompt ("Toy Story 2, Finding Nemo, or The Lion King");

var getReview = function (movie) {
switch (movie) {
case "Toy Story 2":
return "Great story. Mean prospector.";
break;
case "Finding Nemo":
return "Great story. Mean prospector.";
break;
case "The Lion King":
return "Great songs.";
break;
default:
return "I don't know!";
}
};

getReview (answer);


#2

your function:

var getReview = function (movie) {

the { of your function doesn't have a matching closing }, at it at the right place

You seem to return the wrong thing for the finding nemo movie


#3

Thanks for you help.


#4

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