I have to celebrate you baby - doesn't work with console.log


#1


If I use return it works but if I use console.log it runs correctly then displays first case option.


var flick = prompt("What's your favorite 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!"); 
        break;
    }
};

getReview(flick);


#2

This post was flagged by the community and is temporarily hidden.