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.

typeof Boolean === "function"

Parent

Parent of Boolean is Function.prototype.

Reflect.getPrototypeOf ( Boolean ) === Function.prototype

Purpose

Purpose of Boolean is:

Boolean Constructor

Properties

JavaScript, Boolean