I'm not sure what i'm doing wrong


#1

var movie = prompt(“What movie are you looking for?”);
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 “The Lion King”:
console.log(“Great songs.”);
break;
default:
console.log(“I don’t know!”);
break;
}
};
getReview(movie);

*Keep getting an error message: "Oops, try again. Are you sure you’re returning the right thing? "…and not printing correct output. However, when I take the code labs repl.it to run it works perfectly! Not sure what’s going on.


#2

@dhunter90,
Maybe you will have to use the return-statement
instead of the console.log() Method.

https://www.codecademy.com/forum_questions/555212a9e39efebf2d00041e