In the following example:
iis defined;jis undefined but declared;kis undeclared thus causing error;indxis hoisted to the top of the function.
(function () {
var i = 1;
var j;
console.log("i : " + i); // i : 1
console.log("j : " + j); // j : undefined
//console.log("k : " + k);// ReferenceError: k is not defined