BigInt() コンストラクター
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.
BigInt()
コンストラクターは bigint 型の値を返します。
構文
js
BigInt(value);
引数
例
新しい BigInt の生成
js
BigInt(123);
// 123n
仕様書
Specification |
---|
ECMAScript® 2026 Language Specification # sec-bigint-constructor |
ブラウザーの互換性
関連情報
BigInt
クラス