Async Code in Node.js: Callbacks and Promises
Why async code exists in Node.js
First, we have to understand why we need async behaviour in JavaScript
As we all know, JavaScript is a single-threaded language that runs or executes line by line.
Let
javascript-nodejs.hashnode.dev3 min read