11
crisz
6y

You can be the best JavaScript developer ever, but if you write "==" in place of "===" without a valid reason, I won't take you seriously

Comments
  • 5
    Using == reduces file size. Thats valid reason right? RIGHT?!
  • 2
    Reason 1: I know the types are the same.

    Reason 2: the cast values should match
  • 1
    Thanks to default settings on linters. I use === everywhere unless there is good reason not to. But I will confess, it’s more about getting those little squiggles to go away than needing type checking.
Add Comment