If this is assigned as a lab, you can skip this part! Just do it in a repl.it
- Fork and clone this repository
- Create a file in the
js
subdirectory namedpizza.js
- Write your solution in that file
- Run the file by typing
node js/pizza.js
You've been tasked with making an app for a pizza parlor. You'll need an object to hold the menu data.
- Make a
menu
object with at least 5 pizza types as keys. - Make each pizza value another nested object which contains a
toppings
key that is an array of at least 3 toppings and aprice
key 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
banana
pizza. (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 [email protected].