Help on "Meal Maker"

Guys I keep having the error of "/home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:37
** return this._courses[courseName].push(dish);**
** ^**

TypeError: Cannot read property ‘push’ of undefined"

and I really cant understand what I’m doing wrong on my code for MealMakers!
Can somebody help me?

Check your spelling of appetizers. In your _courses object, it’s spelt appetizzers. On line 37, appetizers. Notice the difference?


There are some other spelling inconsistencies, but once you fix those, your code should work!

1 Like

Thank you for the fast reply! Will give it a loog now :smiley:
Merry Christmaaas!

1 Like

Thanks, hope you had a Merry Christmas too!