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

Сообщение

+ +
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("null")}} и {{jsxref("undefined")}} нет свойств, к которым можно было бы обратиться.

+ +

Примеры

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

Смотрите также

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