Edit in JSFiddle

var x;

// will print 'undefined'
console.log(typeof x);