The BigInt()
constructor returns a value of type bigint.
BigInt(value);
value
Note: BigInt()
is not used with the new
operator.
BigInt(123); // 123n
Desktop | ||||||
---|---|---|---|---|---|---|
BigInt() constructor |
67 | 79 | 68 | No | 54 | 14 |
Mobile | ||||||
---|---|---|---|---|---|---|
BigInt() constructor |
67 | 67 | 68 | 48 | 14 | 9.0 |
Server | |
---|---|
BigInt() constructor |
10.4.0 |
BigInt
class
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/BigInt