This is wrong but the lesson says it ok. I have to celebrate you baby


#1

var getReview = function (movie) {

var movie = prompt("What movie are you interested in? Toy Story 2, Finding Nemo or The Lion King?").toLowerCase()
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");
};
};

#2

Where's your question?


#3

The question is, What's wrong with this code?


#4

You don't need this;

var movie = prompt("What movie are you interested in? Toy Story 2, Finding Nemo or The Lion King?").toLowerCase()

Instead, you give the name of the movie in the parameter for the function (in the parentheses () ).


#5

Ok. I guess I was trying to be fancy.

Not to mention that my case should be
Toy Story 2, not toy story 2
etc.
Thanks


#6