Wow. I had a bit of a tough time nailing down JavaScript Objects. But this project has helped me wrap my head around the concepts. I’ll need a bit more practice before they become second nature though.
Here’s my code for the Meal Maker Project :
app.js
const menu = {
_courses: {
appetizers: [],
mains: [],
desserts: [],
},
get appetizers() {
return this._courses.appetizers;
},
This file has been truncated. show original
Any feedback would be greatly appreciated.
Happy Coding.
Hey man, your code looks perfect, after reading it I finally got to know the exact function of getter and setter in this project.
It Was tuff Project I completed after the 4th Try
app.js
const menu = {
_courses: {
appetizers:[],
mains:[],
desserts:[],
},
get appetizers (){
return this._courses.appetizers;
},
This file has been truncated. show original