Hi guys I keep getting this error ( /home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:37
return this._courses[courseName].push(dish);
^
TypeError: Cannot read property ‘push’ of undefined
at Object.addDishToCourse)
I watched the video that was made a few years ago and my syntax is pretty much identical to that…
here is the code:
https://gist.github.com/019ebbfbe3c95ca98e699270eb12f9e7
any help would be great but an explanation as to where i went wrong and why it is wrong would be even more appreciated.