NOTE: Be sure to use your built-in object methods and the for...in loops we covered in the curriculum videos.
-
Note the structure of the
pizzaPlaceobject. Pay attention to the data types and structure. -
Write a function,
printPizzaPlace. It should iterate over every key-value pair in the object and print them in pairs. -
Write a function,
toppingsPriceRange, that iterates over the nestedpizzaToppingsobject and returns the highest and lowest topping prices in a two-element array. DO NOT assume the prices or number of toppings are fixed for anypizzaPlace. -
Write a function,
calculateAverageRating, that intakes apizzaPlaceobject and returns the average number of stars from the star reviews it has received from users.