JS: BigInt (class)

By Xah Lee. Date: . Last updated: .

(new in ECMAScript 2020)

What is the keyword “bigint”

Purpose of BigInt is to allow integers larger than MAX_SAFE_INTEGER

Bigint convert function (not a constructor)

Properties

BigInt.asIntN

BigInt.asUintN