Need review: Switch code results in wrong answer


#1

This is the Switch code I've made. What ever the "movie" key I gave, it always results in "Great story. Mean prospector." before the right answer.

Have anyone noticed my mistakes ?

Thank you in advance!!!


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!");
}

};

getReview('blablabla');


#2

It should have been

case "Toy Story 2": 
return "Great story. Mean prospector.";
break;

instead of

case "Toy Story 2":
console.log ("Great story. Mean prospector.");
break;

This topic was explained clearly at:


#3

If your function has a parameter, then it should probably use it for something, don't you think?

And what value do you use in its stead? You stick in the function itself, what would that ever match?