I recently read a post on reddit that said...
When you start learning JavaScript, you will likely read about never to use == but rather ===.
Which lead me to question: Is there a time when it’s makes sense to use == rather than ===?
The author replied:
If you need to do type conversion. 420 == "420" evaluates to true.
While I could see how this could be useful if comparing the value of a text input to a number easily the same could be done using toString(). Just curious what other use cases the language designers had in mind? Any good examples of using this language feature properly rather than abusing it or negative behavior?