Skip to content

Instantly share code, notes, and snippets.

@xruptronix
xruptronix / sample
Created June 24, 2018 15:23
Hoisting,Let,Const,Function as First Class Object
/////////////////////////////////////////////////// Hoisting Concept /////////////////////////////////////////
// 1.Declration are hoisted
// Example 1
// output => 5
/*
x = 5; // Assign 5 to x
console.log(x); // display x
var x; // Declare x
*/