DEV Community

The Nerdy Dev
The Nerdy Dev

Posted on

Demystifying JavaScript - Exercise - Handling Multiple Async Fetch Calls using Promise.all & Promise.allSettled

In this video, we will do a small exercise and see how we can handle multiple async calls using Promise.all and then we will slowly go to Promise.allSettled to understand how it does the same thing. The main thing we want is whatever promises error out we should get the errors for them but whatever promises succeed we want the results as well which does not happen in case of Promise.all though we will make a small modification to it to see how it can do so just like Promise.allSettled.

๐Ÿฑโ€๐Ÿ’ป ๐Ÿฑโ€๐Ÿ’ป Course Links:
Complete Code - https://github.com/The-Nerdy-Dev
Visual Studio Code - https://code.visualstudio.com
Git - https://git-scm.com/downloads


Support my channel:
๐Ÿ’œ Join the Discord community ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ: https://discord.gg/fgbtN2a
๐Ÿ’œ One time donations via PayPal
Thank you! ๐Ÿ™


Follow me on:
๐Ÿ‘‰ Twitter: https://twitter.com/The_Nerdy_Dev
๐Ÿ‘‰ Instagram: https://instagram.com/thenerdydev
๐Ÿ‘‰ My Blog: https://the-nerdy-dev.com

Top comments (0)