Promise

TIL of the Past: 20-10-10

Koowoy
Promise The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. In simple words, promise is used to process async operation, and when successful it returns a single value. It is mainly used to process data received from a different source and display on the page. Before promise, async operations were processed with a chain of callback functions, which, in complex cases, made the code very hard to read.