7 ms·
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 c
by wbercx 7y 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 7y agoWhat I'm saying is that you wouldn't accidentally type `let x = y` when you meant to type `x == y`