From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../reference/errors/no_properties/index.html | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 files/ja/web/javascript/reference/errors/no_properties/index.html (limited to 'files/ja/web/javascript/reference/errors/no_properties') diff --git a/files/ja/web/javascript/reference/errors/no_properties/index.html b/files/ja/web/javascript/reference/errors/no_properties/index.html new file mode 100644 index 0000000000..d699a0767f --- /dev/null +++ b/files/ja/web/javascript/reference/errors/no_properties/index.html @@ -0,0 +1,40 @@ +--- +title: 'TypeError: "x" has no properties' +slug: Web/JavaScript/Reference/Errors/No_properties +tags: + - Errors + - JavaScript + - TypeError +translation_of: Web/JavaScript/Reference/Errors/No_properties +--- +
{{jsSidebar("Errors")}}
+ +

メッセージ

+ +
TypeError: null has no properties
+TypeError: undefined has no properties
+
+ +

エラータイプ

+ +

{{jsxref("TypeError")}}。

+ +

何がうまくいかなかったのか?

+ +

{{jsxref("null")}} と {{jsxref("undefined")}} に、アクセス可能なプロパティはありません。

+ +

+ +
null.foo;
+// TypeError: null has no properties
+
+undefined.bar;
+// TypeError: undefined has no properties
+
+ +

関連項目

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