4 ms·
As long as you understand how `const` works in JS, I don't see it as in impediment. const x = {}; x.foo = "bar"; is not that confusing, because you aren't
by anonytrary 8y ago
As long as you understand how `const` works in JS, I don't see it as in impediment.
const x = {};
x.foo = "bar";
is not that confusing, because you aren't re-assigning x, you're mutating its data. Maybe `fixed` would have been a better name for it (like a vector that doesn't change direction but can change magnitude) if people think `const` should mean immutable.