4. I have to celebrate you baby


Introduction to Objects I , 4. I have to celebrate you baby:

I keep getting the same error "Oops, try again. Better use a switch statement"

This is my code:

var movies = {};
movies.movie1 = {
movieName: "Toy Story 2",
movieReview: "Great story. Mean prospector."

movies.movie2 = {
    movieName: "Finding Nemo",
    movieReview: "Cool animation, and funny turtles."

movies.movie3 = {
    movieName: "The Lion King",
    movieReview: "Great songs."

var getReview = function(name) {
switch (name) {
case "Toy Story 2":
return movies.movie1.movieReview;
case "Finding Nemo":
return movies.movie2.movieReview;
case "The Lion King":
return movies.movie3.movieReview;
console.log("I don't know!");
var name = prompt("Please enter a movie name");


I found a solution someone posted here.
I had to keep the original function parameter "movie" instead of "name"
here is a link to the solution https://discuss.codecademy.com/t/problem-with-i-have-to-celebrate-you-baby/60425