News for hackers. Stuff that matters.
Re:JavaScript variables: var and let and const by hombre_fatal on Friday March 06, 2020 @03:18PM (#22506918)
I'm not sure what either link clarify.

The first link is someone confusing reassignment mutability with value mutability, a common beginner mistake when they read the byline of "const". It's like reading a rant about how { ...obj } only does a shallow clone and thus "doesn't do anything and we all know it" because you can still modify `obj` to modify the new object.

The second link, a tweet, gives no reasoning.

There are no comments on this comment yet.