Promises in JavaScript

Promises in JavaScript: Promises: then, catch and finally, async and await, Waiting for Several Things at Once.

Updated

  1. Promises: then, catch and finally (Journeyman): A promise is a value that arrives later, like the buzzer a pizza shop hands you, and then, catch and finally say what to do when it works, when it fails, and either way.
  2. async and await (Journeyman): async and await let you write code that waits for promises as if it were a recipe, one step under another, with try and catch for the steps that fail.
  3. Waiting for Several Things at Once (Freelancer): Promise.all, Promise.allSettled, Promise.race and Promise.any start several slow jobs together and wait for all of them, every answer, the first to finish or the first success.