Meal Maker JavaScript Project

Hey Everyone,

Could someone explain what the purpose of the getter and setter methods in the JavaScript Meal Maker project are (link above)? I don’t understand what they do in that object and why they are needed.

Best,
Michael