I have to celebrate


#1

prompt comes up, correct print out however I still get error "are you sure you're returning the right thing"


#2

console.log for great song you missing a semi colon at the end.

If you still getting an error pls paste in your code


#3

Still getting it
var movieName = prompt("Which movie would you like to review?");
var getReview = function (movie) {
switch(movieName){
case 'Toy Story 2':
console.log("Great story. Mean prospector.");
break;
case 'Finding Nemo':
console.log("Cool animation, and funny turtles.");
break;
case 'The Lion King':
console.log("Great Songs.");
break;
default:
console.log("I don't know!");
}

};


#4

your switch needs to be movie so: switch(movie){

at the end after closing your function and switch you need to run it so:

getReview(movieName);

#5

Hi, I've just resolved this one, you have to replace all your "console.log" by return


#6

thanks, that got it going!


#7

Yes the question clearly says we have to use a return statement and not console.log to print it out


#8

Why is there a need to use prompt ?
It is not mentioned to use prompt


#9

I concur with cssurfer. It doesn't say use a prompt. What's the purpose of the function then?

Edit: I just completed it and there is no need for the prompt. You have to call your function.