Meal Maker project review

Hi I was working on meal maker project and I’m not sure if I did the project on the right way but any way it is working fine without any strange error so please guys guide me if there is any things in my code need to change or improve
This my project link Here
Thanks on advance.

1 Like

Hi! You did a very good job. The only thing I see that might be optional is this code:

     set appetizers(anyThing){
       this._course.appetizers.push(anyThing);
    },
    set mains(anyThing){
      this._course.mains.push(anyThing);
    },
    set desserts(anyThing){
       this._course.desserts.push(anyThing);;

Instead of using anyThing, use the respective names, like appetizer, main, and dessert for readability.
Of course, this is totally optional.

2 Likes

Thanks h1lo for your advice as you said we need to keep our code readability and simple :slight_smile:

1 Like