Last active
November 30, 2021 16:09
-
-
Save rahgurung/bd2623aaa4d44318d6dc41d8660c6a0f 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 first() { | |
// call-stack: `first` | |
// call-site: global-scope | |
second(); // | |
} | |
function second() { | |
// call-stack: `first->second` | |
// call-site is in `first` | |
third(); | |
} | |
function third() { | |
// call-stack: `first->second->third` | |
// call-site is in `second` | |
console.log("Hello World"); | |
} | |
first(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment