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 );

Type

Type of Boolean is a function.

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

Parent

Parent of Boolean is Function.prototype.

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

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