The BigInt.prototype property represents the prototype for the BigInt constructor.

Property attributes of BigInt.prototype
Writable no
Enumerable no
Configurable no

Description

All BigInt instances inherit from BigInt.prototype. The prototype object of the BigInt constructor can be modified to affect all BigInt instances.

Properties

BigInt.prototype.constructor
Returns the function that created this object's instance. By default this is the BigInt object.

Methods

BigInt.prototype.toLocaleString()
Returns a string with a language sensitive representation of this number. Overrides the Object.prototype.toLocaleString() method.
BigInt.prototype.toString()
Returns a string representing the specified object in the specified radix (base). Overrides the Object.prototype.toString() method.
BigInt.prototype.valueOf()
Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf() method.

Specifications

Specification Status
BigInt.prototype Stage 3

Browser compatibility

No compatibility data found. Please contribute data for "javascript.builtins.BigInt.prototype" (depth: 1) to the MDN compatibility data repository.

Document Tags and Contributors

Contributors to this page: ExE-Boss, mdnwebdocs-bot, fscholz, alattalatta, sarahgp
Last updated by: ExE-Boss,