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


#1


https://www.codecademy.com/courses/spencer-sandbox/0/4?curriculum_id=506324b3a7dffd00020bf661#


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 jsbin.com) 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."
        break;
        case "Finding Nemo":
        return "Cool animation and funny turtles."
        break;
        case "The Lion King":
        return "Great songs."
        break;
        default:
        return "I don't know"
        break;
    }
};

getReview("Finding Nemo");


#2

Cool animation  // need a , after it

#3

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.


#4

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