What is wrong with my code


#1


I have to celebrate you baby


function getReview(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 King")


.


#2

your function should return the review, not log it to the console


#3

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