null Literal
Collapse the table of content
Expand the table of content

null Literal

An object that represents "no object".

You can erase the contents of a variable (without deleting the variable) by assigning it the null value.


In JScript, null is not the same as 0 (as it is in C and C++). Also the typeof operator in JScript reports null values as being of type Object, not of type null. This potentially confusing behavior is maintained for backwards compatibility.

Community Additions

© 2016 Microsoft