14 August 2007

JavaScript Retardedness

I just discovered after dealing with an annoying bug for over an hour, that in JavaScript, this evaluates to true:

0 == ''

Thankfully, in the newer browsers, they added the === operator to deal with this.