JavaScript: Boolean Object

By Xah Lee. Date: . Last updated: .

Boolean is the value of the property key "Boolean" of the Global Object .

console.log( window.Boolean === Boolean ); // true

Type

Type of Boolean is a function.

console.log( typeof Boolean === "function" ); // true

Parent

Parent of Boolean is Function.prototype. [see Prototype and Inheritance]

console.log( Reflect.getPrototypeOf ( Boolean ) === Function.prototype ); // true

Purpose

Purpose of Boolean is:

[see true, false]

Boolean Constructor

Boolean Constructor

Properties

JavaScript Boolean

BUY
ΣJS
JavaScript in Depth

JS Obj Reference

Boolean

prototype