News for hackers. Stuff that matters.
Re:What’s New in ES2019 by HelloNurse on Tuesday July 30, 2019 @08:31AM (#20564198)
If you use let it means you intend to use that binding "later", up to the end of the scope, and within that scope the value shall not change: that's the Whole point.

If you want a variable you can assign successive different values to, it's an entirely different thing, and there have always been var and the assignment operator for that.

Re:What’s New in ES2019 by heavenlyblue on Tuesday July 30, 2019 @08:32AM (#20564210)
>> within that scope the value shall not change: that's the Whole point.

That's pure BS. This is only true for atomics, the value can change (under let, var and const) as we can easily see with Array.push, for example.

Re:What’s New in ES2019 by pault on Tuesday July 30, 2019 @10:38AM (#20565190)
I think you mean `const`. `let` can be reassigned.