promise

background

Working and functioning of Promises in Javascript

Reading Time: 4 minutes Promises In JavaScript, asynchronous operations are handled through promises. When dealing with several asynchronous activities, where callbacks might lead to callback hell and incomprehensible code, they are simple to manage. Events or callback functions were being used before the promises, but they provided limited functionality and resulted in unmanageable code. The callback hell that would result from having several callback functions would make the code Continue Reading