I have to celebrate you baby


#1

What is wrong with my code?



var nameOfMovie = prompt("Which movie?: Toy Story 2, Finding Nemo, or The Lion King").toLowerCase();
var getReview = function(movie) {
switch(movie){
case "Toy Story 2":
console.log("Great Story. Mean Prospector.");
break;
case "Finding Nemo":
console.log("Cool animation, and funny turtles.");
break;
case "Lion King":
console.log("Great songs.");
break;
default:
console.log("I don't know!");
}
};
getReview(nameOfMovie);

Error Message: Oops, try again.
Are you sure you're returning the right thing?

Thanks for helping

`


#2

Your error message complains about a return value.
What do you return, and what should you return?

// test what my function returns
result = getReview('Finding Nemo');
console.log('My function returned: ' + result);

#3

I don't get you please


#4

Don't get what? You'll have to be more specific about what you want! It's not for me to tell you how to do the whole thing, it's for you to ask the questions that give you the information you need to move on.