12

JavaScript makes no sense.

Comments
  • 1
    When only using two equals characters (==), 0 got a special meaning and also evaluates, if an array is empty in special cases like those.

    A string, on the other hand, is not "empty" if there's content.

    That's why you use === to be sure your "0" and [] match (which, actually, will never be the case).
  • 1
    @Meta rm -rf ./*.js
  • 0
    @AlexDeLarge Lol, you think I give a fuck about votes on a website?
  • 0
    @AlexDeLarge get a life lol
Add Comment