diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/glossary/property/javascript/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/glossary/property/javascript/index.html')
-rw-r--r-- | files/ja/glossary/property/javascript/index.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/ja/glossary/property/javascript/index.html b/files/ja/glossary/property/javascript/index.html new file mode 100644 index 0000000000..20d306e1ee --- /dev/null +++ b/files/ja/glossary/property/javascript/index.html @@ -0,0 +1,27 @@ +--- +title: Property (プロパティ) (JavaScript) +slug: Glossary/property/JavaScript +tags: + - CodingScripting + - Glossary +translation_of: Glossary/property/JavaScript +--- +<p><strong>JavaScript プロパティ</strong>は、多くの場合データ構造と関連付けられた属性を記述する、オブジェクトの特性です。</p> + +<p>プロパティは 2 種類あります。</p> + +<ul> + <li><em>インスタンスプロパティ</em>は、特定のオブジェクトインスタンスに固有のデータを保持します。</li> + <li><em>静的プロパティ</em>は、すべてのオブジェクトインスタンス間で共有されるデータを保持します。</li> +</ul> + +<p>プロパティは名前 ( {{glossary("string", "文字列")}}) と値 ({{glossary("primitive","プリミティブ")}}、{{glossary("method","メソッド")}}、{{glossary("object reference","オブジェクト参照")}}) のいずれかを持ちます。「プロパティが値を保持する」というのは、「プロパティがオブジェクト<em>参照</em>を保持している」という意味です。プロパティの値を変更しても、元の参照オブジェクトは変更されないため、この区別は重要です。</p> + +<h2 id="Learn_more" name="Learn_more">関連項目</h2> + +<h3 id="General_knowledge" name="General_knowledge">一般知識</h3> + +<ul> + <li>Wikipedia 上の記事「{{InterWiki('wikipedia','プロパティ')}}」</li> + <li><a href="https://developer.mozilla.org/ja/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript">オブジェクト志向 JavaScript 入門</a></li> +</ul> |