4.I have to celebrate you baby


#1


I have looked over this until my eyes are bleeding.  Can someone see where the error is? I even tried copying code from someone else's post that worked and as far as I can see it is identical to what I wrote, yet I keep getting the error message "Are you sure you are returning the right thing.

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 "Lion King":
return "Great songs.";
break;
default:
"I don't know";
break;
}
};


#2

on the default part you do not return "i don't know "

you are missing the "return"


#3

Thank you! That did it, you genius!


#4

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