From 9368f65a6c94ddbf6bfe9f4f1f27f166b2e2129f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:08:35 +0100 Subject: unslug ja: modify --- .../guide/class-based_vs._prototype-based_languages/index.html | 3 ++- .../orphaned/web/javascript/guide/core_language_features/index.html | 3 ++- .../web/javascript/guide/creating_a_regular_expression/index.html | 3 ++- .../creating_new_objects/defining_getters_and_setters/index.html | 4 +++- .../javascript/guide/creating_new_objects/defining_methods/index.html | 3 ++- .../defining_properties_for_an_object_type/index.html | 2 ++ .../guide/creating_new_objects/deleting_properties/index.html | 3 ++- .../ja/orphaned/web/javascript/guide/creating_new_objects/index.html | 3 ++- .../guide/creating_new_objects/indexing_object_properties/index.html | 3 ++- .../creating_new_objects/using_a_constructor_function/index.html | 4 +++- .../guide/creating_new_objects/using_object_initializers/index.html | 3 ++- .../creating_new_objects/using_this_for_object_references/index.html | 4 +++- files/ja/orphaned/web/javascript/guide/expressions/index.html | 3 ++- .../web/javascript/guide/loop_statements/break_statement/index.html | 3 ++- .../javascript/guide/loop_statements/continue_statement/index.html | 3 ++- .../javascript/guide/loop_statements/do...while_statement/index.html | 3 ++- .../web/javascript/guide/loop_statements/for_statement/index.html | 3 ++- files/ja/orphaned/web/javascript/guide/loop_statements/index.html | 3 ++- .../web/javascript/guide/loop_statements/label_statement/index.html | 3 ++- .../web/javascript/guide/loop_statements/while_statement/index.html | 3 ++- .../web/javascript/guide/object_manipulation_statements/index.html | 3 ++- .../orphaned/web/javascript/guide/objects_and_properties/index.html | 3 ++- .../web/javascript/guide/operators/arithmetic_operators/index.html | 3 ++- .../web/javascript/guide/operators/assignment_operators/index.html | 3 ++- .../web/javascript/guide/operators/comparison_operators/index.html | 3 ++- .../web/javascript/guide/operators/logical_operators/index.html | 3 ++- .../web/javascript/guide/operators/special_operators/index.html | 3 ++- .../web/javascript/guide/operators/string_operators/index.html | 3 ++- .../predefined_functions/escape_and_unescape_functions/index.html | 4 +++- .../javascript/guide/predefined_functions/eval_function/index.html | 3 ++- .../ja/orphaned/web/javascript/guide/predefined_functions/index.html | 3 ++- .../guide/the_employee_example/creating_the_hierarchy/index.html | 3 ++- .../ja/orphaned/web/javascript/guide/the_employee_example/index.html | 3 ++- .../object_properties/adding_properties/index.html | 4 +++- .../guide/the_employee_example/object_properties/index.html | 3 ++- .../object_properties/inheriting_properties/index.html | 2 ++ .../web/javascript/guide/using_the_arguments_object/index.html | 3 ++- files/ja/orphaned/web/javascript/guide/variables/index.html | 3 ++- .../javascript/guide/writing_a_regular_expression_pattern/index.html | 3 ++- .../web/javascript/reference/global_objects/array/index/index.html | 3 ++- .../web/javascript/reference/global_objects/array/input/index.html | 3 ++- .../javascript/reference/global_objects/array/prototype/index.html | 3 ++- .../reference/global_objects/asyncfunction/prototype/index.html | 3 ++- .../global_objects/finalizationregistry/cleanupsome/index.html | 4 +++- .../ja/orphaned/web/javascript/reference/operators/special/index.html | 3 ++- .../web/javascript/reference/operators/special_operators/index.html | 3 ++- 46 files changed, 98 insertions(+), 44 deletions(-) (limited to 'files/ja/orphaned/web/javascript') diff --git a/files/ja/orphaned/web/javascript/guide/class-based_vs._prototype-based_languages/index.html b/files/ja/orphaned/web/javascript/guide/class-based_vs._prototype-based_languages/index.html index 800f222ea4..23daae0e6b 100644 --- a/files/ja/orphaned/web/javascript/guide/class-based_vs._prototype-based_languages/index.html +++ b/files/ja/orphaned/web/javascript/guide/class-based_vs._prototype-based_languages/index.html @@ -1,6 +1,7 @@ --- title: Class-Based vs. Prototype-Based Languages -slug: Web/JavaScript/Guide/Class-Based_vs._Prototype-Based_Languages +slug: orphaned/Web/JavaScript/Guide/Class-Based_vs._Prototype-Based_Languages +original_slug: Web/JavaScript/Guide/Class-Based_vs._Prototype-Based_Languages ---

クラスベース言語とプロトタイプベース言語

Java や C++ といったクラスベースのオブジェクト指向言語はクラスとインスタンスという 2 つの異なる実体があるという概念に基づいています。

diff --git a/files/ja/orphaned/web/javascript/guide/core_language_features/index.html b/files/ja/orphaned/web/javascript/guide/core_language_features/index.html index 2161ec589e..932c48a85a 100644 --- a/files/ja/orphaned/web/javascript/guide/core_language_features/index.html +++ b/files/ja/orphaned/web/javascript/guide/core_language_features/index.html @@ -1,6 +1,7 @@ --- title: Core Language Features -slug: Web/JavaScript/Guide/Core_Language_Features +slug: orphaned/Web/JavaScript/Guide/Core_Language_Features +original_slug: Web/JavaScript/Guide/Core_Language_Features ---
{{page("/ja/docs/Core_JavaScript_1.5_Guide/Values()")}} diff --git a/files/ja/orphaned/web/javascript/guide/creating_a_regular_expression/index.html b/files/ja/orphaned/web/javascript/guide/creating_a_regular_expression/index.html index 19935b8b55..4da2f3be90 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_a_regular_expression/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_a_regular_expression/index.html @@ -1,6 +1,7 @@ --- title: 正規表現の作成 -slug: Web/JavaScript/Guide/Creating_a_Regular_Expression +slug: orphaned/Web/JavaScript/Guide/Creating_a_Regular_Expression +original_slug: Web/JavaScript/Guide/Creating_a_Regular_Expression ---

正規表現の作成

正規表現は 2 つの方法で作ることができます。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_getters_and_setters/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_getters_and_setters/index.html index 8ee9381575..99b75dd80b 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_getters_and_setters/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_getters_and_setters/index.html @@ -1,6 +1,8 @@ --- title: ゲッターとセッターの定義 -slug: Web/JavaScript/Guide/Creating_New_Objects/Defining_Getters_and_Setters +slug: >- + orphaned/Web/JavaScript/Guide/Creating_New_Objects/Defining_Getters_and_Setters +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Defining_Getters_and_Setters ---

ゲッターとセッターの定義

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_methods/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_methods/index.html index 74731a99d1..f119b47098 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_methods/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_methods/index.html @@ -1,6 +1,7 @@ --- title: メソッドの定義 -slug: Web/JavaScript/Guide/Creating_New_Objects/Defining_Methods +slug: orphaned/Web/JavaScript/Guide/Creating_New_Objects/Defining_Methods +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Defining_Methods ---

メソッドの定義

メソッドとはあるオブジェクトに結びつけられた関数のことです。メソッドは、通常の関数の定義と同じ方法で定義します。既存のオブジェクトに関数を結びつけるには次の構文を使用します。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_properties_for_an_object_type/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_properties_for_an_object_type/index.html index b5136b203e..6652dae588 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_properties_for_an_object_type/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/defining_properties_for_an_object_type/index.html @@ -1,6 +1,8 @@ --- title: Defining Properties for an Object Type slug: >- + orphaned/Web/JavaScript/Guide/Creating_New_Objects/Defining_Properties_for_an_Object_Type +original_slug: >- Web/JavaScript/Guide/Creating_New_Objects/Defining_Properties_for_an_Object_Type ---

あるオブジェクトの種類に対するプロパティの定義

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/deleting_properties/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/deleting_properties/index.html index 749ee722f5..7929571f18 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/deleting_properties/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/deleting_properties/index.html @@ -1,6 +1,7 @@ --- title: プロパティの削除 -slug: Web/JavaScript/Guide/Creating_New_Objects/Deleting_Properties +slug: orphaned/Web/JavaScript/Guide/Creating_New_Objects/Deleting_Properties +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Deleting_Properties ---

プロパティの削除

delete 演算子を用いることでプロパティを除去することができます。次のコードでプロパティの除去方法を示します。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/index.html index 0cbbc1753c..e44129db01 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/index.html @@ -1,6 +1,7 @@ --- title: 新しいオブジェクトの作成 -slug: Web/JavaScript/Guide/Creating_New_Objects +slug: orphaned/Web/JavaScript/Guide/Creating_New_Objects +original_slug: Web/JavaScript/Guide/Creating_New_Objects ---

新しいオブジェクトの作成

JavaScript には多くの定義済みオブジェクトがあります。さらに、自分でオブジェクトを作り出すことができます。JavaScript 1.2 以降では、オブジェクト初期化子を用いてオブジェクトを作成できます。もう 1 つの方法として、まずコンストラクタ関数を作成し、それからその関数と new 演算子を用いてオブジェクトのインスタンスを作成することもできます。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/indexing_object_properties/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/indexing_object_properties/index.html index 024de85654..ecc884f0dd 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/indexing_object_properties/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/indexing_object_properties/index.html @@ -1,6 +1,7 @@ --- title: オブジェクトのプロパティに対するインデックス付け -slug: Web/JavaScript/Guide/Creating_New_Objects/Indexing_Object_Properties +slug: orphaned/Web/JavaScript/Guide/Creating_New_Objects/Indexing_Object_Properties +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Indexing_Object_Properties ---

オブジェクトのプロパティのインデックス付け

JavaScript 1.0 では、オブジェクトのプロパティを、そのプロパティ名や順序のインデックスで参照できます。しかしながら、JavaScript 1.1 以降では、最初にプロパティをその名前で定義すると、常にその名前で参照しなければならず、また、最初にプロパティをインデックスで定義すると、常にそのインデックスで参照しなければなりません。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_a_constructor_function/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_a_constructor_function/index.html index f3abc30e89..b6ab2bdbf9 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_a_constructor_function/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_a_constructor_function/index.html @@ -1,6 +1,8 @@ --- title: コンストラクタ関数の使用 -slug: Web/JavaScript/Guide/Creating_New_Objects/Using_a_Constructor_Function +slug: >- + orphaned/Web/JavaScript/Guide/Creating_New_Objects/Using_a_Constructor_Function +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Using_a_Constructor_Function ---

コンストラクタ関数の使用

もう 1 つの方法として、次の 2 つのステップでオブジェクトを作成することができます。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_object_initializers/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_object_initializers/index.html index 0a817b5407..7d653a5500 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_object_initializers/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_object_initializers/index.html @@ -1,6 +1,7 @@ --- title: オブジェクト初期化子の使用 -slug: Web/JavaScript/Guide/Creating_New_Objects/Using_Object_Initializers +slug: orphaned/Web/JavaScript/Guide/Creating_New_Objects/Using_Object_Initializers +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Using_Object_Initializers ---

オブジェクト初期化子の使用

コンストラクタ関数を使用してオブジェクトを作成する方法だけではなく、オブジェクト初期化子を使用してもオブジェクトを作成することができます。オブジェクト初期化子を使うことはリテラル表示を用いてオブジェクトを作成するということです。「オブジェクト初期化子」は C++ でも同じ意味で使用されている用語です。

diff --git a/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_this_for_object_references/index.html b/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_this_for_object_references/index.html index 5fbd3b8aff..6efbc8276c 100644 --- a/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_this_for_object_references/index.html +++ b/files/ja/orphaned/web/javascript/guide/creating_new_objects/using_this_for_object_references/index.html @@ -1,6 +1,8 @@ --- title: this を用いたオブジェクト参照 -slug: Web/JavaScript/Guide/Creating_New_Objects/Using_this_for_Object_References +slug: >- + orphaned/Web/JavaScript/Guide/Creating_New_Objects/Using_this_for_Object_References +original_slug: Web/JavaScript/Guide/Creating_New_Objects/Using_this_for_Object_References ---

this を用いたオブジェクト参照

JavaScript にはカレントオブジェクトを参照するメソッド内で使用できる特殊なキーワード、this があります。例えば、あるオブジェクトの value プロパティの妥当性を確認する validate という関数があるとします。関数にはそのオブジェクトと、上限および下限の値を渡します。

diff --git a/files/ja/orphaned/web/javascript/guide/expressions/index.html b/files/ja/orphaned/web/javascript/guide/expressions/index.html index 4feb2b1aa8..8e3de71487 100644 --- a/files/ja/orphaned/web/javascript/guide/expressions/index.html +++ b/files/ja/orphaned/web/javascript/guide/expressions/index.html @@ -1,6 +1,7 @@ --- title: Expressions -slug: Web/JavaScript/Guide/Expressions +slug: orphaned/Web/JavaScript/Guide/Expressions +original_slug: Web/JavaScript/Guide/Expressions ---
{{ 英語版章題("Expressions") }}

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/break_statement/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/break_statement/index.html index 35cc94abdf..c4cbf22540 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/break_statement/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/break_statement/index.html @@ -1,6 +1,7 @@ --- title: break 文 -slug: Web/JavaScript/Guide/Loop_Statements/break_Statement +slug: orphaned/Web/JavaScript/Guide/Loop_Statements/break_Statement +original_slug: Web/JavaScript/Guide/Loop_Statements/break_Statement ---

break 文

break 文は loop 文や switch 文、label 文から抜け出すために使用します。

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/continue_statement/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/continue_statement/index.html index f7a5697eeb..38ca0ee798 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/continue_statement/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/continue_statement/index.html @@ -1,6 +1,7 @@ --- title: continue 文 -slug: Web/JavaScript/Guide/Loop_Statements/continue_Statement +slug: orphaned/Web/JavaScript/Guide/Loop_Statements/continue_Statement +original_slug: Web/JavaScript/Guide/Loop_Statements/continue_Statement ---

continue 文

continue 文は while 文、do-while 文、for 文、label 文をリスタートさせるために用います。

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/do...while_statement/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/do...while_statement/index.html index 6e1df1e586..99794a146b 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/do...while_statement/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/do...while_statement/index.html @@ -1,6 +1,7 @@ --- title: do...while 文 -slug: Web/JavaScript/Guide/Loop_Statements/do...while_Statement +slug: orphaned/Web/JavaScript/Guide/Loop_Statements/do...while_Statement +original_slug: Web/JavaScript/Guide/Loop_Statements/do...while_Statement ---

do...while 文

do...while 文は指定した条件が false に評価されるまで繰り返します。do...while 文は次のように使用します。

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/for_statement/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/for_statement/index.html index b2dccec25b..550f38bd3a 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/for_statement/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/for_statement/index.html @@ -1,6 +1,7 @@ --- title: for 文 -slug: Web/JavaScript/Guide/Loop_Statements/for_Statement +slug: orphaned/Web/JavaScript/Guide/Loop_Statements/for_Statement +original_slug: Web/JavaScript/Guide/Loop_Statements/for_Statement ---

for 文

for ループは指定した条件が false に評価されるまで繰り返します。JavaScript の for ループは Java や C の for ループに似ています。for 文は次のように使用します。

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/index.html index 54ef32d2c9..93f9f2c65a 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/index.html @@ -1,6 +1,7 @@ --- title: ループ文 -slug: Web/JavaScript/Guide/Loop_Statements +slug: orphaned/Web/JavaScript/Guide/Loop_Statements +original_slug: Web/JavaScript/Guide/Loop_Statements ---

ループ文

ループは指定した条件が満たされている限り繰り返し実行されるコマンドのセットです。JavaScript は、label はもちろん、for、do while、while といったループ文をサポートしています(label 自体はループ文ではありませんが、これらの文とともに頻繁に使用されます)。さらに、break および continue 文をループ文の中で使うことができます。

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/label_statement/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/label_statement/index.html index d0b878455b..47982ed38b 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/label_statement/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/label_statement/index.html @@ -1,6 +1,7 @@ --- title: label 文 -slug: Web/JavaScript/Guide/Loop_Statements/label_Statement +slug: orphaned/Web/JavaScript/Guide/Loop_Statements/label_Statement +original_slug: Web/JavaScript/Guide/Loop_Statements/label_Statement ---

label 文

label を使うと、そのプログラムのどこからでも参照できる、識別子を持った文を作ることができます。例えば、ラベルを使用してあるループに名前を付けると、break 文や continue 文を使用してプログラムがループを脱出するべきかそのまま実行を継続するべきかを示すことができます。

diff --git a/files/ja/orphaned/web/javascript/guide/loop_statements/while_statement/index.html b/files/ja/orphaned/web/javascript/guide/loop_statements/while_statement/index.html index 77fd191f75..40a177b6c4 100644 --- a/files/ja/orphaned/web/javascript/guide/loop_statements/while_statement/index.html +++ b/files/ja/orphaned/web/javascript/guide/loop_statements/while_statement/index.html @@ -1,6 +1,7 @@ --- title: while 文 -slug: Web/JavaScript/Guide/Loop_Statements/while_Statement +slug: orphaned/Web/JavaScript/Guide/Loop_Statements/while_Statement +original_slug: Web/JavaScript/Guide/Loop_Statements/while_Statement ---

while 文

while 文は、指定した条件が true に評価される限り文を実行します。while 文は次のように使用します。

diff --git a/files/ja/orphaned/web/javascript/guide/object_manipulation_statements/index.html b/files/ja/orphaned/web/javascript/guide/object_manipulation_statements/index.html index ddf781e031..48e820e9ae 100644 --- a/files/ja/orphaned/web/javascript/guide/object_manipulation_statements/index.html +++ b/files/ja/orphaned/web/javascript/guide/object_manipulation_statements/index.html @@ -1,6 +1,7 @@ --- title: Object Manipulation Statements -slug: Web/JavaScript/Guide/Object_Manipulation_Statements +slug: orphaned/Web/JavaScript/Guide/Object_Manipulation_Statements +original_slug: Web/JavaScript/Guide/Object_Manipulation_Statements ---

オブジェクト操作文

JavaScript はオブジェクトの操作に for...infor each...in および with 文を使用します。

diff --git a/files/ja/orphaned/web/javascript/guide/objects_and_properties/index.html b/files/ja/orphaned/web/javascript/guide/objects_and_properties/index.html index f2679c1d00..18fb2b5541 100644 --- a/files/ja/orphaned/web/javascript/guide/objects_and_properties/index.html +++ b/files/ja/orphaned/web/javascript/guide/objects_and_properties/index.html @@ -1,6 +1,7 @@ --- title: オブジェクトとプロパティ -slug: Web/JavaScript/Guide/Objects_and_Properties +slug: orphaned/Web/JavaScript/Guide/Objects_and_Properties +original_slug: Web/JavaScript/Guide/Objects_and_Properties ---

オブジェクトとプロパティ

JavaScript のオブジェクトには、それに結びつけられたプロパティがあります。簡単な記法でオブジェクトのプロパティにアクセスできます。

diff --git a/files/ja/orphaned/web/javascript/guide/operators/arithmetic_operators/index.html b/files/ja/orphaned/web/javascript/guide/operators/arithmetic_operators/index.html index 4aa9662292..3de87bd283 100644 --- a/files/ja/orphaned/web/javascript/guide/operators/arithmetic_operators/index.html +++ b/files/ja/orphaned/web/javascript/guide/operators/arithmetic_operators/index.html @@ -1,6 +1,7 @@ --- title: 算術演算子 -slug: Web/JavaScript/Guide/Operators/Arithmetic_Operators +slug: orphaned/Web/JavaScript/Guide/Operators/Arithmetic_Operators +original_slug: Web/JavaScript/Guide/Operators/Arithmetic_Operators ---

算術演算子

算術演算子は、そのオペランドに数値(リテラルか変数)をとり、1 つの数値を返します。標準的な算術演算子は、加算 (+)、減算 (-)、乗算 (*)、除算 (/) です。これらの演算子は他のほとんどのプログラミング言語と同じように機能しますが、そのときの数値は、浮動小数点数として扱われます(0 で除算した結果は、NaN になることにも注意してください)。

diff --git a/files/ja/orphaned/web/javascript/guide/operators/assignment_operators/index.html b/files/ja/orphaned/web/javascript/guide/operators/assignment_operators/index.html index 88a0b0beb7..a94013a4cf 100644 --- a/files/ja/orphaned/web/javascript/guide/operators/assignment_operators/index.html +++ b/files/ja/orphaned/web/javascript/guide/operators/assignment_operators/index.html @@ -1,6 +1,7 @@ --- title: 代入演算子 -slug: Web/JavaScript/Guide/Operators/Assignment_Operators +slug: orphaned/Web/JavaScript/Guide/Operators/Assignment_Operators +original_slug: Web/JavaScript/Guide/Operators/Assignment_Operators ---

代入演算子

代入演算子は、右のオペランドの値に基づいた値を左のオペランドに代入します。基本的な代入演算子はイコール (=) ですが、これは右のオペランドの値を左のオペランドに代入します。すなわち、x = y では y の値を x に代入します。

diff --git a/files/ja/orphaned/web/javascript/guide/operators/comparison_operators/index.html b/files/ja/orphaned/web/javascript/guide/operators/comparison_operators/index.html index 182802bb5a..678ace0ca9 100644 --- a/files/ja/orphaned/web/javascript/guide/operators/comparison_operators/index.html +++ b/files/ja/orphaned/web/javascript/guide/operators/comparison_operators/index.html @@ -1,6 +1,7 @@ --- title: 比較演算子 -slug: Web/JavaScript/Guide/Operators/Comparison_Operators +slug: orphaned/Web/JavaScript/Guide/Operators/Comparison_Operators +original_slug: Web/JavaScript/Guide/Operators/Comparison_Operators ---

比較演算子

This seems to me kind of poorly explained, mostly the diference betwen "==" and "==="... 比較演算子は、オペランドを比較し、比較結果に基づいた論理値を返します。オペランドには数値、文字列、論理値、オブジェクトが使用できます。文字列は、Unicode 値を用いて標準的な辞書順に基づいて比較されます。ほとんどの場合、2 つのオペランドが異なる型ならば JavaScript はそのオペランドを比較に適した型に変換しようとします(このルールの唯一の例外は === および !== であり、これらは厳密に等値か否かを判断し、等値性をチェックする前にオペランドを適合する型に変換するということはありません)。これは一般に数値の比較が実行されることになります。次の表では比較演算子について説明します。次のコードで考えます。

diff --git a/files/ja/orphaned/web/javascript/guide/operators/logical_operators/index.html b/files/ja/orphaned/web/javascript/guide/operators/logical_operators/index.html index fa6fa08068..03765ab952 100644 --- a/files/ja/orphaned/web/javascript/guide/operators/logical_operators/index.html +++ b/files/ja/orphaned/web/javascript/guide/operators/logical_operators/index.html @@ -1,6 +1,7 @@ --- title: 論理演算子 -slug: Web/JavaScript/Guide/Operators/Logical_Operators +slug: orphaned/Web/JavaScript/Guide/Operators/Logical_Operators +original_slug: Web/JavaScript/Guide/Operators/Logical_Operators ---

論理演算子

論理演算子では基本的に真偽(論理)値を用います。そのような値があると真偽値を返します。しかし、&& および || 演算子は実際には指定されたオペランドの一方の値を返します。そのため、非真偽値とともに論理演算子が使われると非真偽値を返します。論理演算子について次の表で説明します。

diff --git a/files/ja/orphaned/web/javascript/guide/operators/special_operators/index.html b/files/ja/orphaned/web/javascript/guide/operators/special_operators/index.html index 226faf2b3c..b7de9bda0c 100644 --- a/files/ja/orphaned/web/javascript/guide/operators/special_operators/index.html +++ b/files/ja/orphaned/web/javascript/guide/operators/special_operators/index.html @@ -1,6 +1,7 @@ --- title: 特殊演算子 -slug: Web/JavaScript/Guide/Operators/Special_Operators +slug: orphaned/Web/JavaScript/Guide/Operators/Special_Operators +original_slug: Web/JavaScript/Guide/Operators/Special_Operators ---

特殊演算子

JavaScript は以下の特殊演算子があります。

diff --git a/files/ja/orphaned/web/javascript/guide/operators/string_operators/index.html b/files/ja/orphaned/web/javascript/guide/operators/string_operators/index.html index 41bf8bbc44..d4c13e69a3 100644 --- a/files/ja/orphaned/web/javascript/guide/operators/string_operators/index.html +++ b/files/ja/orphaned/web/javascript/guide/operators/string_operators/index.html @@ -1,6 +1,7 @@ --- title: 文字列演算子 -slug: Web/JavaScript/Guide/Operators/String_Operators +slug: orphaned/Web/JavaScript/Guide/Operators/String_Operators +original_slug: Web/JavaScript/Guide/Operators/String_Operators ---

文字列演算子

比較演算子は文字列に使用できますが、これに加えて 2 つの文字列を結合する結合演算子 (+) も使用できます。これは 2 つのオペランドの文字列を結合した文字列を返します。例えば、"my " + "string""my string" という文字列を返します。

diff --git a/files/ja/orphaned/web/javascript/guide/predefined_functions/escape_and_unescape_functions/index.html b/files/ja/orphaned/web/javascript/guide/predefined_functions/escape_and_unescape_functions/index.html index aecb8a81f1..6d126722b1 100644 --- a/files/ja/orphaned/web/javascript/guide/predefined_functions/escape_and_unescape_functions/index.html +++ b/files/ja/orphaned/web/javascript/guide/predefined_functions/escape_and_unescape_functions/index.html @@ -1,6 +1,8 @@ --- title: escape 関数と unescape 関数 -slug: Web/JavaScript/Guide/Predefined_Functions/escape_and_unescape_Functions +slug: >- + orphaned/Web/JavaScript/Guide/Predefined_Functions/escape_and_unescape_Functions +original_slug: Web/JavaScript/Guide/Predefined_Functions/escape_and_unescape_Functions ---

escape および unescape 関数

diff --git a/files/ja/orphaned/web/javascript/guide/predefined_functions/eval_function/index.html b/files/ja/orphaned/web/javascript/guide/predefined_functions/eval_function/index.html index 3945955e86..c28bfef87f 100644 --- a/files/ja/orphaned/web/javascript/guide/predefined_functions/eval_function/index.html +++ b/files/ja/orphaned/web/javascript/guide/predefined_functions/eval_function/index.html @@ -1,6 +1,7 @@ --- title: eval 関数 -slug: Web/JavaScript/Guide/Predefined_Functions/eval_Function +slug: orphaned/Web/JavaScript/Guide/Predefined_Functions/eval_Function +original_slug: Web/JavaScript/Guide/Predefined_Functions/eval_Function ---

eval 関数

diff --git a/files/ja/orphaned/web/javascript/guide/predefined_functions/index.html b/files/ja/orphaned/web/javascript/guide/predefined_functions/index.html index 758c6f22a0..3738bf8da4 100644 --- a/files/ja/orphaned/web/javascript/guide/predefined_functions/index.html +++ b/files/ja/orphaned/web/javascript/guide/predefined_functions/index.html @@ -1,6 +1,7 @@ --- title: 定義済み関数 -slug: Web/JavaScript/Guide/Predefined_Functions +slug: orphaned/Web/JavaScript/Guide/Predefined_Functions +original_slug: Web/JavaScript/Guide/Predefined_Functions ---

定義済み関数

diff --git a/files/ja/orphaned/web/javascript/guide/the_employee_example/creating_the_hierarchy/index.html b/files/ja/orphaned/web/javascript/guide/the_employee_example/creating_the_hierarchy/index.html index 2340536ff7..9ed2621e37 100644 --- a/files/ja/orphaned/web/javascript/guide/the_employee_example/creating_the_hierarchy/index.html +++ b/files/ja/orphaned/web/javascript/guide/the_employee_example/creating_the_hierarchy/index.html @@ -1,6 +1,7 @@ --- title: Creating the Hierarchy -slug: Web/JavaScript/Guide/The_Employee_Example/Creating_the_Hierarchy +slug: orphaned/Web/JavaScript/Guide/The_Employee_Example/Creating_the_Hierarchy +original_slug: Web/JavaScript/Guide/The_Employee_Example/Creating_the_Hierarchy ---

階層の作成

Employee の階層を実装するための適当なコンストラクタ関数を定義する方法はいくつかあります。これの定義に何を選択するかは、アプリケーションで何ができるようにしたいかに大きくよります。

diff --git a/files/ja/orphaned/web/javascript/guide/the_employee_example/index.html b/files/ja/orphaned/web/javascript/guide/the_employee_example/index.html index 63176fa7e2..b47856921c 100644 --- a/files/ja/orphaned/web/javascript/guide/the_employee_example/index.html +++ b/files/ja/orphaned/web/javascript/guide/the_employee_example/index.html @@ -1,6 +1,7 @@ --- title: The Employee Example -slug: Web/JavaScript/Guide/The_Employee_Example +slug: orphaned/Web/JavaScript/Guide/The_Employee_Example +original_slug: Web/JavaScript/Guide/The_Employee_Example ---

従業員の例

この章の残りは次の図で示す従業員の階層を使用していきます。

diff --git a/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/adding_properties/index.html b/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/adding_properties/index.html index c6d536602b..00902af952 100644 --- a/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/adding_properties/index.html +++ b/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/adding_properties/index.html @@ -1,6 +1,8 @@ --- title: Adding Properties -slug: Web/JavaScript/Guide/The_Employee_Example/Object_Properties/Adding_Properties +slug: >- + orphaned/Web/JavaScript/Guide/The_Employee_Example/Object_Properties/Adding_Properties +original_slug: Web/JavaScript/Guide/The_Employee_Example/Object_Properties/Adding_Properties ---

プロパティの追加

JavaScript では実行時にどんなオブジェクトにもプロパティを追加することができます。コンストラクタ関数で与えられるプロパティだけを使う必要はありません。ある 1 つのオブジェクト固有のプロパティを追加するには、次のようにしてオブジェクトに値を代入します。

diff --git a/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/index.html b/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/index.html index e529b8bb52..80c2494cf2 100644 --- a/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/index.html +++ b/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/index.html @@ -1,6 +1,7 @@ --- title: Object Properties -slug: Web/JavaScript/Guide/The_Employee_Example/Object_Properties +slug: orphaned/Web/JavaScript/Guide/The_Employee_Example/Object_Properties +original_slug: Web/JavaScript/Guide/The_Employee_Example/Object_Properties ---

オブジェクトのプロパティ

このセクションでは、プロトタイプチェーンにおいてオブジェクトが他のオブジェクトからどのようにプロパティを継承するのか、また、実行時にプロパティを追加すると何が起きるのかについて論じます。

diff --git a/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/inheriting_properties/index.html b/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/inheriting_properties/index.html index 798746ead6..159c3c4e01 100644 --- a/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/inheriting_properties/index.html +++ b/files/ja/orphaned/web/javascript/guide/the_employee_example/object_properties/inheriting_properties/index.html @@ -1,6 +1,8 @@ --- title: Inheriting Properties slug: >- + orphaned/Web/JavaScript/Guide/The_Employee_Example/Object_Properties/Inheriting_Properties +original_slug: >- Web/JavaScript/Guide/The_Employee_Example/Object_Properties/Inheriting_Properties ---

プロパティの継承

diff --git a/files/ja/orphaned/web/javascript/guide/using_the_arguments_object/index.html b/files/ja/orphaned/web/javascript/guide/using_the_arguments_object/index.html index 10c2d9e3ff..18259c91ce 100644 --- a/files/ja/orphaned/web/javascript/guide/using_the_arguments_object/index.html +++ b/files/ja/orphaned/web/javascript/guide/using_the_arguments_object/index.html @@ -1,6 +1,7 @@ --- title: arguments オブジェクトの使用 -slug: Web/JavaScript/Guide/Using_the_arguments_object +slug: orphaned/Web/JavaScript/Guide/Using_the_arguments_object +original_slug: Web/JavaScript/Guide/Using_the_arguments_object ---

arguments オブジェクトの使用

diff --git a/files/ja/orphaned/web/javascript/guide/variables/index.html b/files/ja/orphaned/web/javascript/guide/variables/index.html index cebaecc949..738f50f0a7 100644 --- a/files/ja/orphaned/web/javascript/guide/variables/index.html +++ b/files/ja/orphaned/web/javascript/guide/variables/index.html @@ -1,6 +1,7 @@ --- title: 変数 -slug: Web/JavaScript/Guide/Variables +slug: orphaned/Web/JavaScript/Guide/Variables +original_slug: Web/JavaScript/Guide/Variables ---

{{ 英語版章題("Variables") }}

変数

diff --git a/files/ja/orphaned/web/javascript/guide/writing_a_regular_expression_pattern/index.html b/files/ja/orphaned/web/javascript/guide/writing_a_regular_expression_pattern/index.html index 64da075317..ee4583e4b4 100644 --- a/files/ja/orphaned/web/javascript/guide/writing_a_regular_expression_pattern/index.html +++ b/files/ja/orphaned/web/javascript/guide/writing_a_regular_expression_pattern/index.html @@ -1,6 +1,7 @@ --- title: 正規表現パターンの記述 -slug: Web/JavaScript/Guide/Writing_a_Regular_Expression_Pattern +slug: orphaned/Web/JavaScript/Guide/Writing_a_Regular_Expression_Pattern +original_slug: Web/JavaScript/Guide/Writing_a_Regular_Expression_Pattern ---

正規表現パターンを書く

diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/array/index/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/array/index/index.html index 1d2e7a4797..c0ba60121b 100644 --- a/files/ja/orphaned/web/javascript/reference/global_objects/array/index/index.html +++ b/files/ja/orphaned/web/javascript/reference/global_objects/array/index/index.html @@ -1,6 +1,7 @@ --- title: index -slug: Web/JavaScript/Reference/Global_Objects/Array/index +slug: orphaned/Web/JavaScript/Reference/Global_Objects/Array/index +original_slug: Web/JavaScript/Reference/Global_Objects/Array/index ---

概要

正規表現マッチにより作成された配列において、文字列中での一致部分の、0 から始まるインデックス。

diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/array/input/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/array/input/index.html index 166ed28656..27cd45f0cc 100644 --- a/files/ja/orphaned/web/javascript/reference/global_objects/array/input/index.html +++ b/files/ja/orphaned/web/javascript/reference/global_objects/array/input/index.html @@ -1,6 +1,7 @@ --- title: input -slug: Web/JavaScript/Reference/Global_Objects/Array/input +slug: orphaned/Web/JavaScript/Reference/Global_Objects/Array/input +original_slug: Web/JavaScript/Reference/Global_Objects/Array/input ---

{{ 英語版章題("Summary") }} diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/array/prototype/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/array/prototype/index.html index dc20c31a41..661804b263 100644 --- a/files/ja/orphaned/web/javascript/reference/global_objects/array/prototype/index.html +++ b/files/ja/orphaned/web/javascript/reference/global_objects/array/prototype/index.html @@ -1,12 +1,13 @@ --- title: Array.prototype -slug: Web/JavaScript/Reference/Global_Objects/Array/prototype +slug: orphaned/Web/JavaScript/Reference/Global_Objects/Array/prototype tags: - Array - JavaScript - Junk - Property translation_of: Web/JavaScript/Reference/Global_Objects/Array/prototype +original_slug: Web/JavaScript/Reference/Global_Objects/Array/prototype ---

{{JSRef}}
diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/asyncfunction/prototype/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/asyncfunction/prototype/index.html index 46bf817819..e2e0896d4a 100644 --- a/files/ja/orphaned/web/javascript/reference/global_objects/asyncfunction/prototype/index.html +++ b/files/ja/orphaned/web/javascript/reference/global_objects/asyncfunction/prototype/index.html @@ -1,6 +1,6 @@ --- title: AsyncFunction.prototype -slug: Web/JavaScript/Reference/Global_Objects/AsyncFunction/prototype +slug: orphaned/Web/JavaScript/Reference/Global_Objects/AsyncFunction/prototype tags: - Experimental - JavaScript @@ -8,6 +8,7 @@ tags: - Prototype - Reference translation_of: Web/JavaScript/Reference/Global_Objects/AsyncFunction/prototype +original_slug: Web/JavaScript/Reference/Global_Objects/AsyncFunction/prototype ---
{{JSRef}}
diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/finalizationregistry/cleanupsome/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/finalizationregistry/cleanupsome/index.html index c25d3dd476..2727c2e736 100644 --- a/files/ja/orphaned/web/javascript/reference/global_objects/finalizationregistry/cleanupsome/index.html +++ b/files/ja/orphaned/web/javascript/reference/global_objects/finalizationregistry/cleanupsome/index.html @@ -1,6 +1,7 @@ --- title: FinalizationRegistry.prototype.cleanupSome() -slug: Web/JavaScript/Reference/Global_Objects/FinalizationRegistry/cleanupSome +slug: >- + orphaned/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry/cleanupSome tags: - FinalizationRegistry - JavaScript @@ -8,6 +9,7 @@ tags: - Prototype - Reference translation_of: Web/JavaScript/Reference/Global_Objects/FinalizationRegistry/cleanupSome +original_slug: Web/JavaScript/Reference/Global_Objects/FinalizationRegistry/cleanupSome ---
{{JSRef}}
diff --git a/files/ja/orphaned/web/javascript/reference/operators/special/index.html b/files/ja/orphaned/web/javascript/reference/operators/special/index.html index cb220a008d..9d0f3c2c8b 100644 --- a/files/ja/orphaned/web/javascript/reference/operators/special/index.html +++ b/files/ja/orphaned/web/javascript/reference/operators/special/index.html @@ -1,5 +1,6 @@ --- title: Special -slug: Web/JavaScript/Reference/Operators/Special +slug: orphaned/Web/JavaScript/Reference/Operators/Special +original_slug: Web/JavaScript/Reference/Operators/Special --- This page was auto-generated because a user created a sub-page to this page. diff --git a/files/ja/orphaned/web/javascript/reference/operators/special_operators/index.html b/files/ja/orphaned/web/javascript/reference/operators/special_operators/index.html index febf3ac3d6..8e40cccc03 100644 --- a/files/ja/orphaned/web/javascript/reference/operators/special_operators/index.html +++ b/files/ja/orphaned/web/javascript/reference/operators/special_operators/index.html @@ -1,5 +1,6 @@ --- title: Special Operators -slug: Web/JavaScript/Reference/Operators/Special_Operators +slug: orphaned/Web/JavaScript/Reference/Operators/Special_Operators +original_slug: Web/JavaScript/Reference/Operators/Special_Operators --- This page was auto-generated because a user created a sub-page to this page. -- cgit v1.2.3-54-g00ecf