06. Nested Data πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ—οΈ Rebuild Menu using Nested Data

Implement the following user story:

  • As a coffee shop owner, I want my Point of Sale system to have access to options within drinks.

Acceptance Criteria

  • Create a menu object that has properties that store drink options, food options, milk options, and size options.

    • Each data set within the menu object should be created from either an array or object.

    • The Drinks array should consist of drink objects that contain the following properties if relevant to that drink:

    • Name

    • Price

    • Size Options

    • Milk Options (If necessary)

    • Iced or Not

    • Sugar or Not

  • Print the following to the console:

    • The price of a drink
    • The price of two drinks
    • The milk and size options

βœ… Solutions

Solutions Click Here