Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
kdmccormick
6y ago
0 comments
Share
> Only helps with const.
Can you elaborate?
0 comments
default
newest
oldest
wbercx
6y ago
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
OP
6y ago
What I'm saying is that you wouldn't accidentally type `let x = y` when you meant to type `x == y`
j
/
k
navigate · click thread line to collapse