Meal Maker JS - stuck on .push()

Heya, i’m stuck on the Meal Maker project in JavaScript.
Here I got the path to my code: [https://gist.github.com/23c1a3ea0a9a001a8688ee618fe77acb]

When running the project I get the following error message:
/home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:37
this._courses[courseName].push(dish);
^
TypeError: Cannot read property ‘push’ of undefined

I have no clue what to do different. Can someone please have a look and see where I went wrong??
So far, this is the first error message I get on the code, so maybe there will be more error messages popping up when fixing this one :slight_smile: I you see em, lemme know!

Maaaaaany thanks!

Check your spelling of the word dessert(s). Needs to be consistent with the property as declared inside the object. :wink:

menu.addDishToCourse('dessert', 'brownie', 3.50);
menu.addDishToCourse('dessert', 'coffee', 3.00);
menu.addDishToCourse('dessert', 'cheesecake', 4.00)
1 Like

Thank you so much, I really did not see that!

I need to take much more care of the typos I make. Made another silly mistake that took me waaay too long to find out haha

1 Like