It’s not that bad, honestly, just something you get used to. When I switch to C++ after a while, I sometimes write === and when I switch back to JS after some time, I occasionally forget to use ===.
In C++ it’s obviously an error and for JS I have my IDE set to warn me about ==. I think I’ve used == in JS (and PHP) intentionally once in the last ~5 years.
It’s not that bad, honestly, just something you get used to. When I switch to C++ after a while, I sometimes write
===
and when I switch back to JS after some time, I occasionally forget to use===
.In C++ it’s obviously an error and for JS I have my IDE set to warn me about
==
. I think I’ve used==
in JS (and PHP) intentionally once in the last ~5 years.