Node.js: Using Async/Await Function to Avoid Promise Chaining & Callback Hell

This article shows how you can use Async/Await function instead of Callback functions or Promise while writing the synchronous programming code in Node.js. Node.js is asynchronous/non-blocking in nature. If we want to execute certain code only after the execution of another code then we can use Callback functions. However, there can be a need of … Read more

Node.js: Asynchronous & Synchronous Code Programming

Node.js is asynchronous in nature. The Node.js APIs are asynchronous or non-blocking. The long-running operations/APIs in Node.js are non-blocking. In Node.js: – The server never waits for any operation to complete and return the data. – The server moves to the next API/operation after calling it. – The response of the previous API call is … Read more