Skip to content

Instantly share code, notes, and snippets.

@danillouz
Last active September 14, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danillouz/8156b9687cc620154b6254d4c69b5f6c to your computer and use it in GitHub Desktop.
Save danillouz/8156b9687cc620154b6254d4c69b5f6c to your computer and use it in GitHub Desktop.
Simple routine to illustrate the call stack.
'use strict';
function work() {
console.log('do work');
}
function main() {
console.log('main start');
work();
console.log('main end');
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment