Skip to main content

The Variable as Name-Value Pair

This video presents the same text shown beside it, spoken and on screen. It adds nothing the text does not say.

State

A variable is a container holding a value — a name-value pair, with primitive types storing the actual value directly at the named memory location.

Show

A balance named in a ledger app is one name bound to one stored number.

Watch for

The direct-storage picture holds for primitives only.