From 95bee9cfbeb4f714de4ee66a952e9bcd308978b9 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 25 Sep 2021 22:02:08 +0900 Subject: ファイル名の変更 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/operators/addition/index.html | 82 ---------------------- .../reference/operators/addition/index.md | 82 ++++++++++++++++++++++ 2 files changed, 82 insertions(+), 82 deletions(-) delete mode 100644 files/ja/web/javascript/reference/operators/addition/index.html create mode 100644 files/ja/web/javascript/reference/operators/addition/index.md diff --git a/files/ja/web/javascript/reference/operators/addition/index.html b/files/ja/web/javascript/reference/operators/addition/index.html deleted file mode 100644 index dc258fc3c1..0000000000 --- a/files/ja/web/javascript/reference/operators/addition/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: 加算 (+) -slug: Web/JavaScript/Reference/Operators/Addition -tags: - - JavaScript - - Language feature - - Operator - - Reference -translation_of: Web/JavaScript/Reference/Operators/Addition ---- -
{{jsSidebar("Operators")}}
- -

加算演算子 (+) は、数値オペランドまたは文字列連結の合計を生成します。

- -
{{EmbedInteractiveExample("pages/js/expressions-addition.html")}}
- -
- - - -

構文

- -
Operator: x + y
-
- -

- -

数値加算

- -
// 数値 + 数値 -> 加算
-1 + 2 // 3
-
-// ブール値 + 数値 -> 加算
-true + 1 // 2
-
-// ブール値 + ブール値 -> 加算
-false + false // 0
-
- -

文字列連結

- -
// 文字列 + 文字列 -> 連結
-'foo' + 'bar' // "foobar"
-
-// 数値 + 文字列 -> 連結
-5 + 'foo' // "5foo"
-
-// 文字列 + ブール値 -> 連結
-'foo' + false // "foofalse"
- -

仕様

- - - - - - - - - - -
仕様
{{SpecName('ESDraft', '#sec-addition-operator-plus', 'Addition operator')}}
- -

ブラウザーの互換性

- - - -

{{Compat("javascript.operators.addition")}}

- -

関連項目

- - diff --git a/files/ja/web/javascript/reference/operators/addition/index.md b/files/ja/web/javascript/reference/operators/addition/index.md new file mode 100644 index 0000000000..dc258fc3c1 --- /dev/null +++ b/files/ja/web/javascript/reference/operators/addition/index.md @@ -0,0 +1,82 @@ +--- +title: 加算 (+) +slug: Web/JavaScript/Reference/Operators/Addition +tags: + - JavaScript + - Language feature + - Operator + - Reference +translation_of: Web/JavaScript/Reference/Operators/Addition +--- +
{{jsSidebar("Operators")}}
+ +

加算演算子 (+) は、数値オペランドまたは文字列連結の合計を生成します。

+ +
{{EmbedInteractiveExample("pages/js/expressions-addition.html")}}
+ +
+ + + +

構文

+ +
Operator: x + y
+
+ +

+ +

数値加算

+ +
// 数値 + 数値 -> 加算
+1 + 2 // 3
+
+// ブール値 + 数値 -> 加算
+true + 1 // 2
+
+// ブール値 + ブール値 -> 加算
+false + false // 0
+
+ +

文字列連結

+ +
// 文字列 + 文字列 -> 連結
+'foo' + 'bar' // "foobar"
+
+// 数値 + 文字列 -> 連結
+5 + 'foo' // "5foo"
+
+// 文字列 + ブール値 -> 連結
+'foo' + false // "foofalse"
+ +

仕様

+ + + + + + + + + + +
仕様
{{SpecName('ESDraft', '#sec-addition-operator-plus', 'Addition operator')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("javascript.operators.addition")}}

+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf