JavaScript undefined Property
JavaScript Global Functions
Definition and Usage
The undefined property holds the value of an undefined variable in JavaScript.
Browser support





All major browsers support the undefined property
Example
Example
Check whether a variable is defined:
The output of the above example is:
t2 is undefined
Try it »
JavaScript Global Functions