3rd September 2021
This blog explains the fundamental concepts that JavaScript relies on to handle asynchronous operations. These concepts include Callback functions, Promises and the use of Async, and Await to handle deferred operations in JavaScript. So before we decode the comparison between the three, let’s get a brief understanding of synchronous (blocking) and asynchronous(non-blocking). Difference Between Sync and Async To make it easy to understand, let’s take a live example which probably will explain the difference between asynchronous and synchronous. Imagine we go to a restaurant, a waiter comes to a table, takes your order and gives it to the kitchen. Then they move on to the server on another table, […]