Peg card: engine, values & variables
You lit up: the engine, the Memory Tower, the genie on his pedestal, and the little islands
Remember
- Code flows top to bottom, one thing at a time, down a single sinkhole.
- Values are islands. You never move or copy them - you point at them.
- A variable is a named genie sitting on an island.
constkeeps him there;letlets 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 ✔️