Logical operators and valueOf
var a = { value: false, valueOf: function(){ return this.value; } }; alert(!a);
What do you think it will alert?
What did it alert?