JavaScript BigInt constructor Property Last Updated : 26 May, 2023 Comments Improve Suggest changes Like Article Like Report 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: ChromeEdgeFirefoxOperaSafari We have a complete list of Javascript BigInt methods, to check those please go through the JavaScript BigInt Complete Reference article. Comment More infoAdvertise with us Next Article JavaScript BigInt asIntN() Method S shobhit_sharma Follow Improve Article Tags : JavaScript Web Technologies Similar Reads JavaScript BigInt() Constructor The JavaScript BigInt BigInt() Constructor is used to convert any primitive data type or object to a BigInt data type. It returns a new BigInt object that represents the original value. This method is particularly useful when dealing with large numbers that exceed the safe integer limit of 900719925 3 min read JavaScript BigInt constructor Property 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 constr 1 min read JavaScript BigInt asIntN() Method The BigInt.asIntN() method is an inbuilt method in JavaScript that is used to wrap a BigInt value to a signed integer between -2width-1 and 2width-1-1. Syntax: BigInt.asIntN(width, bigint);; Parameters: This function accepts two parameters as mentioned above and described below: width: This paramete 2 min read JavaScript BigInt asUintN() Method The BigInt.asUintN() method is an inbuilt method in JavaScript that is used to wrap a BigInt value to an unsigned integer between 0 and 2width-1. Syntax: BigInt.asUintN (width, bigint); Parameters: This method accepts two parameters as mentioned above and described below: width: This parameter holds 2 min read JavaScript BigInt toLocaleString() Method The BigInt.toLocaleString() method is an inbuilt method in JavaScript that is used to return a string with a language-sensitive representation of this BigInt. Syntax: bigIntObj.toLocaleString(locales, options) Parameters: This method accepts two parameters as mentioned above and described below: loc 2 min read JavaScript BigInt toString() Method The BigInt.toString() method is an inbuilt method in JavaScript that is used to return a string representing the specified BigInt object. Syntax: bigIntObj.toString( radix ) Parameters: This function accepts a single parameter and it is optional. radix: It is an integer value in the range of 2 throu 1 min read JavaScript BigInt valueOf() Method The BigInt.toString() method is an inbuilt method in JavaScript that is used to return the wrapped primitive value of a BigInt object. Syntax: bigIntObj.valueOf() Parameters: This method does not accept any parameter. Return value: This method returns a BigInt representing the primitive value of the 1 min read Like