Tuesday, February 16, 2010

WTFJs

JavaScript is a language we love despite it giving us so much to hate. This is a collection of those very special irregularities, inconstancies and just plain painfully unintuitive moments for the language of the web.
  1. alert(111111111111111111111);
  2. [] == ![] // true
  3. 0.1 + 0.2 === 0.3 // false
  4. Nan != NaN // true
http://wtfjs.com

No comments: