I encountered an issue while working on a coding exercise. Whenever I attempt to submit my code, I receive the following error message:
SyntaxError: Unexpected string
var movieObj = {
"Toy Story 2": "Great story. Mean prospector.",
"Finding Nemo": "Cool animation, and funny turtles."
"The Lion King": "Great songs."
};
var getReview = function (movie) {
if (movie in movieObj) {
return movieObj[movie]
} else {
return "I don't know!"
}
};
getReview("Toy Story 2") //expected = "Great story. Mean prospector."
getReview("Toy Story") //expected = " don't know!"
Can you help me figure out what's going wrong?