Why this code is not working , please advise


#1


Replace this line with your code.


#2

function getReview(movie){

switch(movie){
case 'Toy Story2':
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;
}
};

console.log(getReview('Toy Story2'));


#3

Toy Story 2, you are missing a space before 2


#4

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