Content-Length: 261987 | pFad | http://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/No_properties

TypeError: "x" has no properties - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

TypeError: "x" 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)

Тип ошибки

TypeError.

Что пошло не так?

У null и undefined нет свойств, к которым можно было бы обратиться.

Примеры

js
null.foo;
// TypeError: null has no properties

undefined.bar;
// TypeError: undefined has no properties

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









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/No_properties

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy