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

JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Boolean

prototype