Jul 29, 2017 · 1 min read
If it works as you describe and I trust that it does, it should be in the specification and in any introduction to asynchronous calls in Javascript. Perhaps some links to show that this is a well specified behavior, perhaps even mentioned in many introductions, should be added to your story.
Also, you could have included how a loop fits in the call stack? The loop is also finished before any callback. In fact, the entire script is on the call stack, included required files, and the whole thing is executed before the callbacks.
