Celebrate you Baby - It passes but


#1

The following code got me a 'pass' on the exercise, but it only returns the the console log for my first case. No matter my input I get "Great Story. Mean Prospector".

Wonder what happened here.

Thanks all!

var movie = prompt("What is the movie");

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.name;
     
     };

#2

Use return instead of Console.log and in Toy Story 2 - ("Great story. Mean prospector.");


#3

And what is

getreview.name

??

Should more look like this

var getReview = function (movie) {
    switch(movie){
        case "Toy Story 2": return "Great story. Mean prospector.";
        break;
        case "Finding Nemo": return "Cool animation, and funny turtles.";
        break;
        case "The Lion King": return "Great songs.";
        break;
        default: "I don't know!";
        break;
    
    }
        
};

var movie = prompt("What is the movie");
getReview(movie);

#4

Thank you very much.