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

The whole point of having two sets of comparitors (=== and == in this instance) is that you can use the correct one for any given circumstance. Proscribing the use of one in favour of the other is just woolly thinking.


Yes but in most of the cases it's better to use === operators. I mean, they both are correct. It's just a matter of style




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: