O'Reilly logo
  • Alon Tal thinks this is interesting:

JavaScript has two sets of equality operators: === and !==, and their evil twins == and !=. The good ones work the way you would expect. If the two operands are of the same type and have the same value, then === produces true and !== produces false. The evil twins do the right thing when the operands are of the same type, but if they are of different types, they attempt to coerce the values. The rule...

From

Cover of JavaScript: The Good Parts

Note

Always use === instead of ==.