From 822c46ebe5ba590576663e4a46f1c2dbcab7cf4d Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 21 Sep 2021 11:20:55 +0900 Subject: Global_Objects/BigInt/BigInt を更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Markdown に変換 - 2021/07/21 時点の英語版に同期 --- .../global_objects/bigint/bigint/index.md | 63 +++++++++------------- 1 file changed, 24 insertions(+), 39 deletions(-) (limited to 'files/ja/web/javascript') diff --git a/files/ja/web/javascript/reference/global_objects/bigint/bigint/index.md b/files/ja/web/javascript/reference/global_objects/bigint/bigint/index.md index ff495fbe93..c59a748eca 100644 --- a/files/ja/web/javascript/reference/global_objects/bigint/bigint/index.md +++ b/files/ja/web/javascript/reference/global_objects/bigint/bigint/index.md @@ -3,61 +3,46 @@ title: BigInt() コンストラクター slug: Web/JavaScript/Reference/Global_Objects/BigInt/BigInt tags: - BigInt - - Constructor - - JavaScript - - Reference - コンストラクター + - JavaScript + - リファレンス +browser-compat: javascript.builtins.BigInt.BigInt translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/BigInt --- -
{{JSRef}}
+{{JSRef}} -

BigInt() コンストラクターは、 {{jsxref("BigInt")}} オブジェクトを生成するために使用します。

+**`BigInt()`** コンストラクターは **bigint** 型の値を返します。 -

構文

+## 構文 -
BigInt(value);
-
+```js +BigInt(value); +``` -

引数

+### 引数 -
-
value
-
作成しようとしているオブジェクトの数値。文字列または整数にすることができます。
-
+- `value` + - : 作成しようとしているオブジェクトの数値。文字列または整数にすることができます。 -
-

メモ: BigInt() は {{JSxRef("Operators/new", "new")}} 演算子と共には使用されません。

-
+> **Note:** `BigInt()` は {{JSxRef("Operators/new", "new")}} 演算子と共には使用されません。 -

+## 例 -

新しい BigInt の生成

+### 新しい BigInt の生成 -
BigInt(123);
+```js
+BigInt(123);
 // 123n
-
+``` -

仕様書

+## 仕様書 - - - - - - - - - - - -
仕様書
{{SpecName('ESDraft', '#sec-bigint-constructor', 'BigInt constructor')}}
+{{Specifications}} -

ブラウザーの互換性

+## ブラウザーの互換性 -

{{Compat("javascript.builtins.BigInt.BigInt")}}

+{{Compat}} -

関連情報

+## 関連情報 - +- {{jsxref("BigInt")}} クラス -- cgit v1.2.3-54-g00ecf