Last active
September 15, 2016 02:43
-
-
Save gerisztein/4baff53d7428a40931d3d36a3807cef9 to your computer and use it in GitHub Desktop.
hoisting-examples.js
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
console.log(ghost); | |
// ReferenceError: ghost is not defined |
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
console.log(ghost); | |
var ghost; | |
// undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment