Do all your code in a repl.it.
- Fork and clone this repository
- Create a file in the
jssubdirectory namedpizza.js - copy/paste your solution into that file
- Commit and push your code, then make a pull request!
You've been tasked with making an app for a pizza parlor. You'll need an object to hold the menu data.
- Make a
menuobject with at least 5 pizza types as keys. - Make each pizza value another nested object which contains a
toppingskey that is an array of at least 3 toppings and apricekey telling what it costs.
- Using an appropriate Object method, print a list of all pizza names. (Hint: The pizza names are the keys in your object. Is there a way we can get a list of all keys in an object?)
- Using another appropriate Object method, check to see if the parlor offers a
bananapizza. (Hint: Is there a method that can tell us whether or not an object contains a key of a certain name?)
- All content is licensed under a CC-BY-NC-SA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.