Lesson 4 I cant figure this out


#1

var names = prompt("What movie would you like to review?");
var getReview = function (movie) {
switch(movie){
case 'Toy Story 2':
return "Great Story. Mean prospector.";
break;

case 'Finding Nemo':
return "Cool animation, and funnny turtles.";
break;

case 'The Lion King':
return "Great songs.";
break;

default:
return "I dont Know!";}

};
console.log(getReview(names));

//I keep getting an error that says "OOps try again. Check the review of Finding Nemo"
//The code works and prints out the correct review, I have no clue whats wrong.


#2

You misspelled the word funny. You wrote funnny instead of funny


#3

Lol thanks, it always helps to have someone else review your work


#4

On instructions the phrase ("Great story. Mean prospector.") appear with "story" and the correct is "Story" to work.


#5

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";
}
};
console.log(getReview(prompt("Type a movie too see the review")));


#6

is it possible to "toUpperCase" the movie titles and if so how?


#7

i remember i couldnt complete this due to spelling errors


#8

oh noes its 2017 now not 2016