namaste-javascript-notes

Episode 3 : Hoisting in JavaScript (variables & functions)

getName(); // Namaste JavaScript
console.log(x); // Uncaught Reference: x is not defined.
console.log(getName); // f getName(){ console.log("Namaste JavaScript); }
function getName(){
    console.log("Namaste JavaScript");
}

Watch Live On Youtube below:

Hoisting Youtube Link