Empty Values

Null vs. 'undefined' vs. Object

Nulls

The null keyword is one of Javascript's primitive values.

To test for null, do:

var possibleNull = null;
alert(possibleNull === null); //returns true
typeof null        // object (bug in ECMAScript, should be null) 
typeof undefined   // undefined 
null === undefined // false 
null  == undefined // true