Help with 4/33


#1

Hi all,

The console keeps printing the requested movie review to the screen along with the movie review for Toy Story no matter what I input. What is the problem?

Thanks!

var name = prompt("Enter movie.");
var getReview = function (movie) {
switch (movie) {
case 'Finding Nemo' :
return console.log("Cool animation, and funny turtles.");
break;
case 'The Lion King' :
return console.log("Great songs.");
break;
case 'Toy Story 2' :
return console.log("Great story. Mean prospector.");
break;
default:
return console.log("I do not know that movie.");
}
};

getReview(name);


#2

You return console.log which doesn't make much sense as console.log has a value of undefined. Better return the actual value and wrap your function call in a console.log.