Last active
March 31, 2018 12:07
-
-
Save rishabhgupta/06921ed0fb442071018fc3d643a3f913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hoisting(); | |
console.log(a); | |
var a = "hello hoisting"; | |
function hoisting() { | |
console.log('hoisted function'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = "value" // Assignment before decleration | |
var a; // Declaration | |
console.log(a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hoisting(); | |
console.log(a); | |
function hoisting() { | |
console.log('hoisting'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hoisting(); | |
console.log(a); | |
function hoisting() { | |
console.log('hoisting'); | |
} | |
a = "hoisting"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment