undefined Property

Top  Previous  Next

Returns the value of undefined.

Syntax

undefined

Description

If a variable has not been declared, "Identifier not declared" error is thrown. If a variable has been declared but not  initialized, it has an undefined value.

Examples

x; // Throws the "Identifier not declared" error
var x; // x is undefined (uninitialized)