Do async operations with callbacks increase the stack size? I don’t have enough knowledge of javascript interpreters or the proper tools to figure this out. My goto tool is the firebug console and it shows that the stack size is not increasing but I could be looking at it wrong. So does anyone know?
Do async operations with callbacks increase the stack size? I don’t have enough knowledge
Share
An asynchronous callback, just like an event callback, is run one-by-one through the event loop. It is not called from the same call stack of the function that put it in the event loop, as each function in the loop is run to completion before the next is called. So no, they don’t increase the stack size.