JavaScript Promises: Promise.all vs Promise.allSettled vs Promise.race vs Promise.any

Zubair Ahmed
Dec 12, 2020 · 5 min read
JavaScript Promises: Promise.all vs Promise.allSettled vs Promise.race vs Promise.any

On your way to become a “JavaScript Superstar” and “Promises whizz”, you’ll need to master the concept of handling multiple promises at the same time. There are some methods that are provided by the language to do just that, but before we dwell on those methods let’s begin with understanding some basics of “states” and “fates” of promises.