4. I have to celebrate you baby


#1


4. I have to celebrate you baby


The Error:
Oops, try again. Check the review of Toy Story 2

Tried both codes.
What the problem is?

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("Toy Story 2");

OR

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.";
        default:
            return "I don't know!";
    }
};

getReview("Toy Story 2");


#2

You have to use the EXACT text's
(spaces puntuation exclamation-mark)


#3

OK. Get it.
IDK why dot make the answer to be correct.
"Great story. Mean prospector" equals to "Great story. Mean prospector." to me.


#4

The code-checker which you activate when clicking SUBMIT/RUN
is checking for the EXACT text's....


#5

I realized that. but ignore dot like "Toy Story." is not like ignore dot like "console.log".
I expected from the system to be smarter to make the difference.


#6

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