Y
Hacker News
new
|
ask
|
show
|
jobs
by
thomasfoster96
4039 days 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.
1 comments
bmeck
4038 days ago
const is not about immutability in JS.
link
thomasfoster96
4037 days ago
I know that - but the previous comment made it sound as though it did mean immutability.
link