"I have to celebrate you baby" problem


#1

Hi there,
I'm stucked...

Wondering if there's anything wrong?
I tested it, and the code do works, but it keeping reminds me to "better use switch statement"...
So I believe my solution isn't legit.
I think the mistakes I made might be subtle... or probably stupid XD.
Anyway...
I hop someone can correct it.
Much appreciate!

var getReview = function (title) {
    switch(title) {
        case "Toy Story 2":
            return "Great story. Mean prospctor.";
            break;
        case "Findding Nemo":
            return "Cool animation, and funny turtle.";
            break;
        case "Lion King":
            return "Great Songs.";
            break;
        default:
            return "I don't know!";
    }
};

getReview();

#2

HI your function getReview() has an argument so when you call it you should put something in it

getReview("Here put the name of the movie");

#3

This worked for me!

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:
console.log(" no review found");
}
};


#4

Alright, I finally figure it out...
i just change the "title" to "movie" and it stop bugging me XD
Thankyou guys anyway!