3 ms·
There are two types of immutability in JS: one is rebinding a variable (forbidden by the const keyword) and the other is modifying an object (forbidden by freez
by afiori 4y ago
There are two types of immutability in JS: one is rebinding a variable (forbidden by the const keyword) and the other is modifying an object (forbidden by freeze)
In javascript these are similar as environment closures behave sort of similar to prototype chains.