3 Mar
2010
3 Mar
'10
8:23 a.m.
On Tue, Mar 2, 2010 at 10:59 PM, Daniel Gackle <danielgackle@gmail.com> wrote:
Perverse side note: the above example doesn't work if you assign 1 to the variables because in JS, the following is true:
1 == true
I didn't know this. JS still manages to shock me sometimes.
That is why you always should use === instead of == in Javascript. 1 == true is true 1 === true is false http://rayfd.wordpress.com/2007/03/18/really-understanding-javascripts-equal... /Henrik Hjelte