Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript undefined Property

JavaScript undefined Property

Function Reference JavaScript Global Functions


Definition and Usage

The undefined property holds the value of an undefined variable in JavaScript.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 »


Function Reference JavaScript Global Functions