JS: Boolean (class)

By Xah Lee. Date: . Last updated: .

What is the Keyword โ€œBooleanโ€

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

console.log(globalThis["Boolean"] === Boolean);

Type

Type of Boolean is a function.

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

Parent

Parent of Boolean is Function.prototype.

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

Purpose

Purpose of Boolean is:

Boolean Constructor

Properties

JavaScript. Boolean