JavaScript typeof undfine

var x;
if (typeof x === 'undefined') {
   // these statements execute
}
Smoggy Shrew