4 ms·
I'm not sure I quite understand your point - while it's true that the variable called queue won't be reassigned, const would still allow elements and properties
by thomasfoster96 11y ago
I'm not sure I quite understand your point - while it's true that the variable called queue won't be reassigned, const would still allow elements and properties to be added to queue.
- bmeck 11y agoconst is not about immutability in JS.
- thomasfoster96 11y agoI know that - but the previous comment made it sound as though it did mean immutability.