Meal Maker Project - JS syntax, part 2

Hello All, anyone can check out my code and say what i did wrong? I can’t find it :grimacing:
Issue is persisting around the line 41. Thank you!
**Y

const menu = { get courses(){ return { appetizers: this.appetizers, mains: this.mains, desserts: this.desserts, }; }, _courses: { appetizers: [], mains: [], desserts: [] }, get appetizers() { return this._courses.appetisers; }, get mains() { return this._courses.mains; }, get desserts() { return this._courses.desserts; }, set appetizers(appetizers) { return this._courses.appetizers = appetizers; }, set mains(mains) { return this._courses.mains = mains; }, set desserts(desserts) { return this._courses.desserts = desserts; }, addDishToCourse(courseName, dishName, dishPrice) { const dish = { name: dishName, price: dishPrice, }; this._course[courseName].push(dish); }, getRandomFromCourse(courseName) { const dishes = this._courses[courseName]; const randomIndex = Math.floor(Math.random()*dishes.length); }, generateRandomMeal(appetizers) { const appetizer = this.getRandomDishFromCourse('appetizers'); const totalPrice = appetizer.price + mains.price + desserts.price; return ` Your meal is ${appetizer.name}, ${main.name}, ${desserts.name}. The Price is $${totalPrice},`; } }; menu.addDishToCourse('appetizers', 'Caesar Salad', 4.25); menu.addDishToCourse('appetizers', 'popcorn', 3.25); menu.addDishToCourse('appetizers', 'fries', 4.75); menu.addDishToCourse('mains', 'steak', 10.75); menu.addDishToCourse('mains', 'wings', 7.75); menu.addDishToCourse('mains', 'tacos', 8.00); menu.addDishToCourse('desserts', 'ice cream', 2.00); menu.addDishToCourse('desserts', 'coffee', 3.00); menu.addDishToCourse('desserts', 'cake', 4.50); let meal = menu.generateRandomMeal(); console.log(meal);

ou must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility**

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

on line 41 you have:

this._course[courseName].push(dish);

but everywhere else, you use courses (plural), so unsure why you use course (singular) here.

also, your indention is a bit off, makes the code difficult to read