Async Code in Node.js: Callbacks and Promises
Why async code exists in Node.js
Node.js runs on a single thread. That means it can only do one thing at a time — but waiting is not "doing" anything. If your app reads a file from disk, it has to wai
joydeep.hashnode.dev4 min read