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
Boolean.prototype.bang = function() { return !this.valueOf(); } true.bang(); // false
Everything in JavaScript is an object. But at the same time we also have primitives. It's really confusing, just don't overthink it.