Hi everyone, I am a bit confused a bit by steps 4-6 in this exercise. They are superfluous, because the steps afterwards use push methods to populate the _courses arrays, and object methods are created that retrieve the values from these arrays quite easily.
Here are the superfluous steps:
Step 4: Create getter and setter methods for the appetizers, mains, and desserts properties.
Step 5: Inside your menu object, create an empty getter method for the _courses property
Step 6: Inside the courses getter method, return an object that contains key/value pairs for appetizers, mains, and desserts.
If you delete these parts of the code, the program will run fine. Just go from step 3 to step 7.
So… Why are the steps in there if they are not relevant to the program? Are we meant to experiment with ‘get’ and ‘set’ more in this project?
Thank you !