From 9b965a794d8e500fc0414f234f451a0c6b464984 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 25 Jun 2021 01:17:20 +0900 Subject: Web/JavaScript/Reference/Errors/N* を更新 (#1202) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Web/JavaScript/Reference/Errors/N* を更新 2021/06/14 時点の英語版に同期 * 追加修正 --- .../reference/errors/no_properties/index.html | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'files/ja/web/javascript/reference/errors/no_properties/index.html') 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 ---
{{jsSidebar("Errors")}}
-

メッセージ

+

JavaScript の例外 "null (or undefined) has no properties" は、 {{jsxref("null")}} および {{jsxref("undefined")}} のプロパティにアクセスしようとしたときに発生します。これらには何もありません。They

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

エラーメッセージ

+ +
TypeError: Unable to get property {x} of undefined or null reference (Edge)
+TypeError: null has no properties (Firefox)
+TypeError: undefined has no properties (Firefox)
 

エラータイプ

-

{{jsxref("TypeError")}}。

+

{{jsxref("TypeError")}}

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

@@ -25,6 +29,8 @@ TypeError: undefined has no properties

+

null と undefined にはプロパティがない

+
null.foo;
 // TypeError: null has no properties
 
@@ -35,6 +41,6 @@ undefined.bar;
 

関連項目

    -
  • {{jsxref("null")}}
  • -
  • {{jsxref("undefined")}}
  • +
  • {{jsxref("null")}}
  • +
  • {{jsxref("undefined")}}
-- cgit v1.2.3-54-g00ecf