Last active
December 1, 2015 15:23
-
-
Save shallaa/50e3b562c361120a816f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 abc() { | |
| var a = 'bbb'; | |
| console.log(a); // ---- 1 | |
| function c() { | |
| console.log(a); // --- 2 | |
| (function() { | |
| console.log(a); // --- 3 | |
| a = 'ccc'; | |
| })(); | |
| var a; | |
| console.log(a); // ---4 | |
| } | |
| function d() { | |
| console.log(a); // --- 5 | |
| } | |
| c(); | |
| a = 'ddd'; | |
| d(); | |
| }; | |
| abc(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment