Async Code in Node.js : Callbacks & Promises
Why async code exists
Node.js runs on a single thread. If it stopped to wait every time it read a file or called an API, your whole server would freeze. So instead, Node says: "Go start that task I'll
saurabh-ravte.hashnode.dev3 min read