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: []

When running the project I get the following error message:
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