Last active
September 14, 2018 08:57
-
-
Save danillouz/8156b9687cc620154b6254d4c69b5f6c to your computer and use it in GitHub Desktop.
Simple routine to illustrate the call stack.
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
'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