Error in meal maker

hello!

hello I have a problem with my code, an error keeps popping up that says:

/home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:29
this._courses[courseName].push(dish);
^

TypeError: Cannot read property ‘push’ of undefined
at Object.addDishToCourse (/home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:29:30)
at Object. (/home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:52:6)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

and I don’t know how to fix it, can someone help me. hears my code:

1 Like

If you’re pushing to undefined then you might ask yourself if you looked in the right place for whatever you meant to push to, and whether you put it there.
If you got both of those right then you won’t be attempting to push to undefined.

less profanity in code you post publicly, thanks.

1 Like

that is not abusive, its ’ 25 Of The Worst Food Name Fails Ever’! here read it:

1 Like

Those are words used to hurt other people, if that’s not what’s meant then you probably don’t mean those words and can pick other ones.

1 Like

ok sorry, Subscribe to pewdiepie