diff options
Diffstat (limited to 'files/ja/web/javascript')
-rw-r--r-- | files/ja/web/javascript/reference/global_objects/bigint/bigint/index.md | 63 |
1 files changed, 24 insertions, 39 deletions
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 --- -<div>{{JSRef}}</div> +{{JSRef}} -<p><strong><code>BigInt()</code></strong> コンストラクターは、 {{jsxref("BigInt")}} オブジェクトを生成するために使用します。</p> +**`BigInt()`** コンストラクターは **bigint** 型の値を返します。 -<h2 id="Syntax" name="Syntax">構文</h2> +## 構文 -<pre class="syntaxbox">BigInt(<var>value</var>); -</pre> +```js +BigInt(value); +``` -<h3 id="Parameters" name="Parameters">引数</h3> +### 引数 -<dl> - <dt><code><var>value</var></code></dt> - <dd>作成しようとしているオブジェクトの数値。文字列または整数にすることができます。</dd> -</dl> +- `value` + - : 作成しようとしているオブジェクトの数値。文字列または整数にすることができます。 -<div class="blockIndicator note"> -<p><strong>メモ</strong>: <code>BigInt()</code> は {{JSxRef("Operators/new", "new")}} 演算子と共には使用されません。</p> -</div> +> **Note:** `BigInt()` は {{JSxRef("Operators/new", "new")}} 演算子と共には使用されません。 -<h2 id="Examples" name="Examples">例</h2> +## 例 -<h3 id="Creating_a_new_BigInt" name="Creating_a_new_BigInt">新しい BigInt の生成</h3> +### 新しい BigInt の生成 -<pre class="brush: js">BigInt(123); +```js +BigInt(123); // 123n -</pre> +``` -<h2 id="Specifications" name="Specifications">仕様書</h2> +## 仕様書 -<table class="standard-table"> - <thead> - <tr> - <th scope="col">仕様書</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('ESDraft', '#sec-bigint-constructor', 'BigInt constructor')}}</td> - </tr> - </tbody> -</table> +{{Specifications}} -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> +## ブラウザーの互換性 -<p>{{Compat("javascript.builtins.BigInt.BigInt")}}</p> +{{Compat}} -<h2 id="See_also" name="See_also">関連情報</h2> +## 関連情報 -<ul> - <li>{{jsxref("BigInt")}} class</li> -</ul> +- {{jsxref("BigInt")}} クラス |