I am reading through the Mozilla Manual on JavaScript, and I come to this point in my reading, Boolean object. I can\'t see a single use for them. What\'s their point? Why w
JavaScript language design has quite many dusty corners, and the Boolean is one of them; it is not used in practice.
This:
var a = []; alert(a instanceof Array);
will tell you "true". But this:
var b = true; alert(b instanceof Boolean);
for some reason will show "false".
In short: forget about it.