Movies Review


#1



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


what is the problem .. why am having all these problems -_-
the error says that to check to story 2 review


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;
    }
};


#2

Check your spelling in the returns.


#3

@unexpectedtoken

thats my code right now and it worked and he let me pass the exercise .. what happened ?
i typed ( getReview(Toy Story 2); ) ===> it send me an error ..
but when i typed ( getReview(); ) ===> everything goes well and finished ..

i just wanna know what happened ?

this the code

`
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();

`


#4

Hi you Should put The " " around the name of your movies inside The Call function


#5

OKAAY !!

nvm am bignner :stuck_out_tongue:

thank you ^^