Meal Maker

Hello I seem to be running into a problem that I feel is simple but I ran out of ideas. I don’t seem to get an error message but the below results in undefined and object, object when run.

const menu = {
_courses: {
appetizers: ,
mains: ,
desserts:
},

get appetizers() {
return this._courses.appetizers;
},

set appetizers(appetizers) {
this._courses.appetizers = appetizers
},

get mains() {
return this._courses.mains;
},

set mains(mains) {
this._courses.mains = mains;
},

get desserts() {
return this._courses.desserts;
},

set desserts(desserts) {
this._courses.desserts = desserts;
},

get courses() {
return {
appetizers: this.appetizers,
mains: this.mains,
desserts: this.desserts
}
},
addDishToCourse(courseName, dishName, dishPrice) {
const dish = {
dishName: dishName,
dishPrice: 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 appetizers = this.getRandomDishFromCourse(‘appetizers’);
const mains = this.getRandomDishFromCourse(‘mains’);
const desserts = this.getRandomDishFromCourse(‘desserts’);
const totalPrice = appetizers.price + mains.price + desserts.price;

return `Your meal is ${appetizers.name}, ${mains.name}, and ${desserts}. The price is ${totalPrice}. `

}
}

menu.addDishToCourse(‘appetizers’, ‘Caesar Salad’, 4.25);
menu.addDishToCourse(‘appetizers’, ‘bread’, 5.25);

menu.addDishToCourse(‘mains’, ‘fish’, 8.25);
menu.addDishToCourse(‘mains’, ‘steak’, 10.25);

menu.addDishToCourse(‘desserts’, ‘cake’, 4.25);
menu.addDishToCourse(‘desserts’, ‘cheese cake’, 4.25);

let meal = menu.generateRandomMeal();

console.log(meal)

Check the names of your properties against those used in the getRandomMeal() method.