Async Code in Node.js: Callbacks and Promises
Why async code exists in Node.js :
Before understanding asynchronous programming, note that Node.js is single-threaded, meaning only one piece of code executes at a time. If a heavy task, such as read
wishaal.hashnode.dev3 min read