If I use:
this.courses[courseName] = dish;
rather than:
this._courses[courseName].push(dish);
I will get a ‘Maximum call stack size exceeded error’. I’ve done some Googling and it looks like numerous people have had this same issue in the past. Is it possible to actually use the getter/setter methods to complete the exercise as it suggests? It seems there is a circular-reference in the code itself that it asks you to write.
The lesson: https://www.codecademy.com/courses/introduction-to-javascript/projects/meal-maker