4. I have to celebrate you baby


#1

Hi!
Can someone tell me please whats's wrong with my code? Or is there is bug in the system?

Help is much appreciated!


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

"Great story.Mean prospector"

"Cool animation,and funny turtles"

Be careful as to respect the instructions. Spaces and full stops matter, for example.


#3

Now, it works. Thanks!


#4

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