Last active
August 6, 2019 19:00
-
-
Save ionelh/09da947eeedebce6963ac76d23692544 to your computer and use it in GitHub Desktop.
Gist for medium article "How JavaScript Works"
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
function a() { | |
function b() { | |
console.log(foo); // logs 'bar' | |
} | |
var foo = 'bar'; | |
b(); | |
} | |
a(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment