Created
June 16, 2019 22:01
-
-
Save reime005/bf40f8dfd5ab609948d09c7ed3a50d03 to your computer and use it in GitHub Desktop.
JavaScript hoisting example 2
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
fooFunction(); // ReferenceError: fooFunction is not defined | |
foo(); // TypeError: undefined is not a function | |
var foo = function fooFunction() { console.log(42) }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment