Topic 3.1 · Interactive concept example
Value types and independent copies
- Names versus values
- Number, string, Boolean and list
- Copy then update
Change it · step through · explain
Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.
Ready · Make a prediction
- Value typenumberWaiting
- Original number (0–99)7Waiting
Ready to explore: Value types and independent copies
Why: Change an input, predict the first effect, then advance one step.
Try this: Change one input or choose another listed case. Predict the effect, reset and compare the states and governing rule.