This code in JS gives me a popup saying \"i think null is a number\", which I find slightly disturbing. What am I missing?
Note:
"1" == 1 // true "1" === 1 // false
The == operator does type-conversion, while === does not.
Douglas Crockford's website, a Yahoo! JavaScript evangelist, is a great resource for stuff like this.