Peg card: engine, values & variables

You lit up: the engine, the Memory Tower, the genie on his pedestal, and the little islands

Remember

  1. Code flows top to bottom, one thing at a time, down a single sinkhole.
  2. Values are islands. You never move or copy them - you point at them.
  3. A variable is a named genie sitting on an island. const keeps him there; let lets him move.

Spot it in the blog app

This is the top of the blog app you'll meet again and again in this course. Which genies are sitting on the volcano island of undefined - and why is that fine for now?

Where this fits

Every app has to remember things. In the Universal Pattern, that memory is the ring of flags at the top of the model: genies pointing at islands, declared together, where every function can see them. Storing data: job one ✔️