Https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-javascript-syntax-part-ii/modules/fecp-learn-javascript-syntax-objects/projects/meal-maker

im getting this error: /home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:37
return this._courses[courseName].push(dish);
^
TypeError: Cannot read property ‘appetizers’ of undefined
at Object.addDishToCourse (/home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:37:25).

ive tried following along with the tutorial but sstill having problems with finding the issue.

https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-javascript-syntax-part-ii/modules/fecp-learn-javascript-syntax-objects/projects/meal-maker

So we can help you can you send us the code you have.

sorry

const menu = {

  _course: {

    appetizers: [],

    mains: [],

    desserts: []

  },

  get appetizers() {

    return this._courses.appetizers;

  },

  get mains() {

    return this._courses.mains;

  },

  get desserts() {

    return this._courses.desserts;

  },

  set appetizers(appetizers) {

    this._courses.appetizers;

  },

  set mains(mains) {

    this._courses.mains;

  },

  set desserts(desserts) {

    this._courses.desserts;

  },

  get courses(){

    return{

      appetizers: this.appetizers,

      mains: this.mains,

      desserts: this.desserts,

    };

  },

  addDishToCourse(courseName, dishName, dishPrice) {

    const dish = {

    name: dishName,

    price: dishPrice,

  };

    return this._courses[courseName].push(dish);

    },

  getRandomDishFromCourse(courseName){

      const dishes = this._courses[courseName];

      const randomIndex = math.floor(math.random()*dishes.length)

      return dishes[randomIndex];

    },

  generateRandomMeal(){

    const appetizer = this.getRandomDishFromCourse('appetizers');

    const main = this.getRandomDishFromCourse('main');

    const dessert = this.getRandomDishFromCourse('desserts');

    const totalPrice = appetizer.price + main.price + dessert.price;

    return `your meal is ${appetizer.name}, ${main.name} and ${dessert.name}, the total is ${totalPrice}.`

  }

};

menu.addDishToCourse('appetizers', 'Buffalo Shrimp', 12.00);

menu.addDishToCourse('appetizers', 'Salad', 9.00);

menu.addDishToCourse('appetizers', 'Clam Chowder', 9.00);

menu.addDishToCourse('main', 'Swordfish', 28.00);

menu.addDishToCourse('main', 'Portershouse', 38.00);

menu.addDishToCourse('main', 'Surf & Turf', 44.00);

menu.addDishToCourse('dessert', 'Banana Pudding', 12.00);

menu.addDishToCourse('dessert', 'Tres Leche', 14.00);

menu.addDishToCourse('dessert', 'Cake and Vanilla cream', 12.00);

const meal = menu.generateRandomMeal();

console.log(meal);

It looks like you’ve forgot sssssomething near the start.

Spoiler

you’ve got _course on the second line, _courses everywhere else.