Last active
August 17, 2020 15:53
-
-
Save ikushaldave/eaa11b252081e975d63a10cc8cb74f1d to your computer and use it in GitHub Desktop.
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 user = "global"; | |
function scope() { | |
var user = "function scope" | |
console.log(user); // "function scope" | |
} | |
scope(); | |
console.log(user); // "global" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment