Skip to content

Instantly share code, notes, and snippets.

@rahgurung
Last active November 30, 2021 16:09
Show Gist options
  • Save rahgurung/bd2623aaa4d44318d6dc41d8660c6a0f to your computer and use it in GitHub Desktop.
Save rahgurung/bd2623aaa4d44318d6dc41d8660c6a0f to your computer and use it in GitHub Desktop.
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