Chapter 3 — Objects

New concepts: object literals, dot notation, destructuring, spread, Object.entries

Open the browser Console (F12 → Console) to see output from console.log().

Exercises

  1. Create an order object with 8 properties — log and check with 'in'
  2. Destructure the object: extract customer, region, total with defaults
  3. Use spread to create 3 products from a template object
  4. Use Object.entries() to print each region's revenue as % of total