I have to celebrate you baby


#1

I’m so confused as to why this isn’t working…

It just keeps returning the toy story review regardless of what I call.
If I remove the toy story case it just returns default console.log.

Please help!

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(“The Lion Kng”);


#2

Check your spelling in the above call.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.