var a = ('' == 0);
What is the value of “a”? Is it true, or false?
As a bonus, how
if (foo.bar) can lead to false negatives when checking for attributes, and you'll see how to properly check for attributes on an object.