Lesson 4 I have to celebrate you baby


#1

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

i keep getting the:
Oops, try again. Better use a switch statement error.

var getReview = function(movie) {
var user = prompt("Enter movie name:").toLowerCase();
switch(user){
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(user);

#2

HI you case should be
"Toy Story 2" - "Great story. Mean prospector."
"Finding Nemo" - "Cool animation, and funny turtles."
"The Lion King" - "Great songs."
you should write exatly what they gave you...


#3

I tried that, but i'm still getting the error.


#4

can you post your new code?


#5

var user = prompt("Enter movie name:");
var getReview = function() {

switch(user){
    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(user);


#6

this part

var getReview = function() {

switch(user)

your function should takes an argument movie then put also movie in the switch() instead of user


#7

done and it fixed it! thank you so much!