diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-06-25 01:17:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 01:17:20 +0900 |
| commit | 9b965a794d8e500fc0414f234f451a0c6b464984 (patch) | |
| tree | c0b7985200f9d14396ad6eae3aea6ca1b33a8777 /files/ja/web/javascript/reference/errors/no_properties | |
| parent | 74c650c03c337ff0868bd860b886c3af8befb743 (diff) | |
| download | translated-content-9b965a794d8e500fc0414f234f451a0c6b464984.tar.gz translated-content-9b965a794d8e500fc0414f234f451a0c6b464984.tar.bz2 translated-content-9b965a794d8e500fc0414f234f451a0c6b464984.zip | |
Web/JavaScript/Reference/Errors/N* を更新 (#1202)
* Web/JavaScript/Reference/Errors/N* を更新
2021/06/14 時点の英語版に同期
* 追加修正
Diffstat (limited to 'files/ja/web/javascript/reference/errors/no_properties')
| -rw-r--r-- | files/ja/web/javascript/reference/errors/no_properties/index.html | 24 |
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> |
