JavaScript - Promises - When is the function passed to the Promise constructor invoked?

javascript-promises

The Promise constructor probably creates a promise object, do some necessary 
setup, use setTimeout to invoke the provided function with a small timeout, 
and return the promise object.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License