I can't understand what's wrong with the code


#1

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:
console.log("I don't know!");
}
};
getReview ("Finding Nemo");


#2

@arrayplayer00820

1

You will have to use the EXACT return text's as mentioned in the Instructions,
as your not-mentioned !!! error-message tried to make aware of...
Oops, try again. Check the review of The Lion King

2

Do not use the parentheses ( ) with your return statement.

3

As you are using the return statement,
your function will return a Result with NoDisplay
but you could have used

console.log( getReview ("Finding Nemo") );
console.log( "End-of-code, all following output is from the code-checker ")

#3

Thank you for help. I figured it out. Works now.