A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/javascript-bigint-constructor-property/ below:

JavaScript BigInt constructor Property - GeeksforGeeks

JavaScript BigInt constructor Property

Last Updated : 23 Jul, 2025

JavaScript BigInt constructor Property in Javascript is used to return the BigInt constructor function for the object. The function which is returned by this property is just the reference to this function, not a BigInt containing the function’s name. The JavaScript number constructor, string constructor, and boolean constructor return function Number() { [native code] }, function String() { [native code] }, and function Boolean() { [native code] } respectively.

Syntax:

bigint.constructor

Return Value: BigInt() { [native code] }

The below example illustrates the use of the BigInt constructor Property:

Example 1: This example shows the basic use of the BigInt constructor property in JavaScript.

JavaScript
function func() {
    let big = BigInt("244545654");
    let value = big.constructor;
    console.log(value);
}
func();

Output:

ƒ BigInt() { [native code] }

Example 2: This example uses the BigInt constructor property of Javascript.

JavaScript
function myGeeks() {
    let big = BigInt("234234325");

    console.log(big.constructor);
}
myGeeks()

Output:

ƒ BigInt() { [native code] }

Supported Browsers:

We have a complete list of Javascript BigInt methods, to check those please go through the JavaScript BigInt Complete Reference article.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4