Created
September 6, 2018 05:01
-
-
Save praveen-me/878223adafee1b3177e641db6504c6c1 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'; //I am a global scope | |
function iAmLocal() { //I am a global scope | |
console.log(a) // 'global' | |
} //I am a global scope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment