Promise in JS
Earlier before promise was introduced in JS asynchronous operations were handled using callback functions.
Promises are special objects in JS which are used to represent the state of an asynchronous operation.
Promises have three states:
Pending: Th...
sudhanshusoni.hashnode.dev3 min read