JavaScript stores primitive values (string, number, boolean, null, undefined, symbol, bigint) as actual values. But when you work with objects (including arrays and functions), JavaScript stores references to memory addresses, not the object itself.
...