Created
September 6, 2018 05:04
-
-
Save praveen-me/d963cd28f6b03fc78f29053eb3f7c520 to your computer and use it in GitHub Desktop.
Scopes in JavaScript
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 a = 'global'; | |
function iAMLocal() { | |
var b = 'local'; | |
} | |
a; //'global' | |
b; //?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment