← the terminal · instructor

W22 // OBJECTS AND NESTED DATA

FEB 10 · Ch 9 Sec 5-8 · DUE: Object exercises

This week's deckPPTX

// RUN OF SHOW (8:45-10:15)
8:45

Stand-up: last week's deliverable graded, questions answered

9:00

This week's presentation

9:20

At the keyboard: guided type-along

9:45

Build time: assignment or project work

10:10

Close: commit, push, and preview next week's reading

// THE POINT THIS WEEK
Objects. Access and update. Looping objects. Nesting arrays and objects.
// TALKING POINTS
Objects hold shape
  • An object stores named properties: person.name, person.age
  • Dot notation reads and writes; keys are labels, values are anything
  • Arrays for order, objects for structure; real data nests both
Nested data is normal
  • An array of objects is the workhorse of real software
  • contacts[2].email reads: third contact, their email
  • Draw the shape on paper before writing the code that walks it
> TREASURE HUNT WEEK

The Nested Vault opens today: student door · foreman key. Badge Q. Run it in the build block or assign as the week's warm-down.

// LINKS