aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/javascript/reference/errors/no_properties/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/javascript/reference/errors/no_properties/index.html')
-rw-r--r--files/ja/web/javascript/reference/errors/no_properties/index.html24
1 files changed, 15 insertions, 9 deletions
diff --git a/files/ja/web/javascript/reference/errors/no_properties/index.html b/files/ja/web/javascript/reference/errors/no_properties/index.html
index d699a0767f..6630aee904 100644
--- a/files/ja/web/javascript/reference/errors/no_properties/index.html
+++ b/files/ja/web/javascript/reference/errors/no_properties/index.html
@@ -2,22 +2,26 @@
title: 'TypeError: "x" has no properties'
slug: Web/JavaScript/Reference/Errors/No_properties
tags:
- - Errors
- - JavaScript
- - TypeError
+- Error
+- Errors
+- JavaScript
+- TypeError
translation_of: Web/JavaScript/Reference/Errors/No_properties
---
<div>{{jsSidebar("Errors")}}</div>
-<h2 id="メッセージ">メッセージ</h2>
+<p>JavaScript の例外 "null (or undefined) has no properties" は、 {{jsxref("null")}} および {{jsxref("undefined")}} のプロパティにアクセスしようとしたときに発生します。これらには何もありません。They</p>
-<pre class="syntaxbox">TypeError: null has no properties
-TypeError: undefined has no properties
+<h2 id="Message">エラーメッセージ</h2>
+
+<pre class="brush: js">TypeError: Unable to get property {x} of undefined or null reference (Edge)
+TypeError: null has no properties (Firefox)
+TypeError: undefined has no properties (Firefox)
</pre>
<h2 id="エラータイプ">エラータイプ</h2>
-<p>{{jsxref("TypeError")}}。</p>
+<p>{{jsxref("TypeError")}}</p>
<h2 id="何がうまくいかなかったのか?">何がうまくいかなかったのか?</h2>
@@ -25,6 +29,8 @@ TypeError: undefined has no properties
<h2 id="例">例</h2>
+<h3 id="null_and_undefined_have_no_properties">null と undefined にはプロパティがない</h3>
+
<pre class="brush: js example-bad">null.foo;
// TypeError: null has no properties
@@ -35,6 +41,6 @@ undefined.bar;
<h2 id="関連項目">関連項目</h2>
<ul>
- <li>{{jsxref("null")}}</li>
- <li>{{jsxref("undefined")}}</li>
+ <li>{{jsxref("null")}}</li>
+ <li>{{jsxref("undefined")}}</li>
</ul>