Created
September 17, 2015 16:35
-
-
Save chuck0523/07f7b08d798f71474ea4 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 x = 5; | |
var func1 = function() { | |
var x = 9; | |
return x; | |
}; | |
var func2 = func1(); | |
console.log(x); // 5 | |
console.log(func2); // 9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment