Created
April 28, 2015 17:10
-
-
Save sagiavinash/25d1f223812a074d1f8f to your computer and use it in GitHub Desktop.
JS_CallStackExecution_Demo
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
console.log("1"); | |
(function level1(){ | |
console.log("2"); | |
setTimeout(function async1(){ | |
console.log("3"); | |
},0); | |
(function level2(){ | |
console.log("4"); | |
setTimeout(function async2(){ | |
console.log("5"); | |
},0); | |
console.log("6"); | |
})(); | |
console.log("7"); | |
})(); | |
console.log("8"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment