Object Keys and Values
Keys Values
π¨βπΌ We have a small inventory object and need to extract the names and
quantities for reporting.
π¨ Open
and:
- Use
Object.keysto get the item names - Use
Object.valuesto get the item quantities - Compute the total quantity using the values array
- π MDN - Object.keys
- π MDN - Object.values


