JS: BigInt (class)
(new in ECMAScript 2020)
What is the keyword “bigint”
BigInt is the value of the property key "BigInt" of the Global Object
.
console.assert((globalThis["BigInt"] === BigInt));
Type
Type of BigInt is a function.
console.assert(typeof BigInt === "function");
Parent
Parent of BigInt is Function.prototype.
console.assert(Reflect.getPrototypeOf(BigInt) === Function.prototype);
Purpose
Purpose of BigInt is to allow integers larger than
MAX_SAFE_INTEGER