GLOSSARY · A WORD, UNPACKED
reference type
a value like an object or array that's stored as a pointer to somewhere in memory, so copying the variable copies the pointer, not the whole value.
A little more detail
Reference type is a common teaching label for objects, including arrays and functions. The pointer description is a mental model: JavaScript does not expose the memory address for you to manipulate. Assigning an object to another variable gives both bindings access to the same object; it does not clone its contents. Changing a shared property is visible through either binding. Reassigning one binding to a different object does not move the other binding. Spread makes a shallow outer copy, so nested objects can remain shared.
See it in practice
These lessons pair the idea with examples you can change and run.