Edit in JSFiddle

var x;
var undefined = 'hello';

// none of these checks will work
if (x === undefined) {
    console.log('x is undefined!');
}
// or
if (x == undefined) {
    console.log('x is undefined or null!');
}