Object Keys and Values

Keys Values
πŸ‘¨β€πŸ’Ό We have a small inventory object and need to extract the names and quantities for reporting.
🐨 Open
index.ts
and:
  1. Use Object.keys to get the item names
  2. Use Object.values to get the item quantities
  3. Compute the total quantity using the values array

Please set the playground first

Loading "Object Keys and Values"
Loading "Object Keys and Values"