/ClassSyntaxPractice_ComboPriceSetters

Object creation using the class syntax practice and challenge using getter and setter.

Primary LanguageJavaScript

JavaScript Class Syntax: Combo Price

Allow a restaurant to define the items in its combo meal, based on items from the menu, using a setter. Then have your comboPrice getter use the combo property created by the setter instead of the hard coded menu items to calculate the cost.