Introduction to Objects I : I have to celebrate you baby (no error, review returned, still can't pass)


My code returns the correct movie review but I cannot pass...? There are no syntax errors I can find, though outside this environment (i.e. in it doesn't return anything because there is no console.log.

I'm not sure whats wrong.

var getReview = function (movie) {
    switch(movie) {
        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."
        return "I don't know"

getReview("Finding Nemo");


Cool animation  // need a , after it


Thank you! I was going mad trying to figure out what was wrong. I took that out because I thought it was grammatically (English) incorrect. :joy: Putting it back fixed it. I will take care to put exactly the same content in next time.


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