JavaScript Promises 101
▻https://bitsofco.de/javascript-promises-101
A #JavaScript #Promise represents the result of an operation that hasn’t been completed yet, but will at some undetermined point in the future. An example of such an operation is a network request. When we fetch data from some source, for example an API, there is no way for us to absolutely determine when the response will be received.
Promises provide a standardised and cleaner method of dealing with tasks that need to happen in sequence.