(no title)
keawade | 4 years ago
‘const’ declares a variable with an immutable reference, not an immutable value. If you’re referencing a simple literal like a string or a number that’s effectively the same thing but for objects (and arrays under the hood of JavaScript are fancy objects) while the reference to your given object is constant, the properties of that objects are still mutable.
Xenoamorphous|4 years ago
AtNightWeCode|4 years ago
shadowgovt|4 years ago