Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

NoteNote

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

ADD
Show:
© 2015 Microsoft