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
- Create an order object with 8 properties — log and check with 'in'
- Destructure the object: extract customer, region, total with defaults
- Use spread to create 3 products from a template object
- Use Object.entries() to print each region's revenue as % of total