Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Only helps with const.

Can you elaborate?



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.


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: