4 ms·
A const declaration only ensures that the variable always points to the same object, not that that object is immutable. For instance in JS: const foo = {}; fo
by laurencerowe 7y ago
A const declaration only ensures that the variable always points to the same object, not that that object is immutable. For instance in JS:
const foo = {};
foo.bar = 1;
- snrji 7y agoThat depends on the language.