2 ms·
A variable is first and perhaps foremost a name by which a value is accessed. In some/most languages a different value can be associated with the name, and/or
by karmakaze 6y ago
A variable is first and perhaps foremost a name by which a value is accessed.
In some/most languages a different value can be associated with the name, and/or the value-thing can be changed/mutated.
Not an analogy, but a good start. Then have to describe different kinds of values and maybe references. Easier to do in parts than all at once as a 'variable'.