> Basically you're telling it to do something and when it's done it will call your function (callback). This is because Node is single-threaded.
Do you mean multi-threaded?
Do you mean multi-threaded?
Once one of those activities completes the event loop will give a signal to the main thread of the Node app and the callback will be executed.
Not sure if that helped or just confused everyone.
[1] https://developer.mozilla.org/en-US/docs/Web/Guide/Performan...