4. I have to celebrate you baby


#1

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

I managed to return it back but I still got an error.
"Oops, try again. Check the review of Toy Story 2"
I don't know what's wrong with the review of Toy Story 2. I've checked the spelling, etc.


var movie = prompt("Which movie is the best? Toy Story 2, Finding Nemo or The Lion King?").toLowerCase();
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!";
    }   
};
getReview(movie);


#2

Use the exact stings provided in the intstructions. Why be allergic to capitalization of proper names?


#3

Rant:

How would you feel if your teacher addressed you as neil? This is how impacting lowercase can be in proper names. I don't respond to 'roy'. I respond to, 'Roy'.


#4

Thank you!
I copy pasted the ones from the instructions.It works perfectly fine now.

My idea was to convert the "data" from the 'prompt menu' to lower case because it would be easier as the answer input would be used in the switch function in lower case. Anyway, thanks for the reply!


#5

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