I Need To Celebrate You Baby Code Not Working


#1


It Tells Me To Run A Switch Statement No Matter How I Change It Up, Even Though I'm Using One


var getReview = function (movie) {
switch(review){
    case "Toy Story 2":
    return 'Great story. Mean prospector';
    case "Finding Nemo":
    return 'Cool animation, and funny turtles.';
    case "The Lion King":
    return 'Great songs.';
    default:
    return "I don't know!";
}
};
var review =  prompt ("What Movie Would You Like Me To Review?")
getReview();


#2

Remember to include an argument with the above function call.

getReview(review);

To see it print to the display,

console.log(getReview(review));

#3

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