Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kdmccormick
on July 31, 2019
|
parent
|
context
|
favorite
| on:
What’s New in ES2019
> Only helps with const.
Can you elaborate?
wbercx
on Aug 1, 2019
[–]
If the `x` in the example was a const, it would throw an error because the code attempts to assign the value of `y` to `x`. You cannot assign a new value to a const.
kdmccormick
on Aug 1, 2019
|
parent
[–]
What I'm saying is that you wouldn't accidentally type `let x = y` when you meant to type `x == y`
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Can you elaborate?