Created
November 22, 2020 09:54
-
-
Save kermit-klein/919084669cdaf2e40b4760741f2f81f3 to your computer and use it in GitHub Desktop.
hoist2
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
var printLastName; | |
printLastName = function() { | |
console.log("McClane") | |
} | |
var printFirstName; // undefined | |
printLastName() // "McClane" | |
printFirstName() // Uncaught TypeError: printFirstName is not a function | |
printFirstName = function() { | |
console.log("John") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment