Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 682 Bytes

questions.md

File metadata and controls

13 lines (7 loc) · 682 Bytes

Day 5 Questions

  1. What is an Object, and how is it different from an Array in Javascript?

  2. In the space below, create an Object stored to a variable named petStore. This Object should hold an inventory of items and the number of that item that you might find at a pet store.

  3. Given the following states = {"CO": "Colorado", "IA": "Iowa", "OK": "Oklahoma"}, how would you access the value "Iowa"?

  4. How would you add a new property to that Object with a key of "MN" and a value of "Minnesota"?

  5. What is another example of when we might use a Object? In this case, why is an Object better than an Array?

  6. What questions do you still have about Objects?