3 ms·
Yeah, I wrestled with that briefly. For anyone not in the know, declaring `const` on an object only makes it where you can't re-assign the object, but you can
by madamelic 10y ago
Yeah, I wrestled with that briefly.
For anyone not in the know, declaring `const` on an object only makes it where you can't re-assign the object, but you can still mutate its 'members'.
Personally, I use `let` just to symbolize that it isn't a constant and does change even though I could declare it a `const`.
I think it makes the code more readable.