MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey-2018-1

Our volunteers haven't translated this article into Italiano yet. Join us and help get the job done!
You can also read the article in English (US).

Message

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

Error type

TypeError.

What went wrong?

Both, null and undefined, have no properties you could access.

Examples

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

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

See also

Tag del documento e collaboratori

 Hanno collaborato alla realizzazione di questa pagina: fscholz
 Ultima modifica di: fscholz,