DEV Community

Cover image for Let's Learn Promises in JavaScript! πŸš€

Let's Learn Promises in JavaScript! πŸš€

Jagroop Singh on November 24, 2024

Hey there, JavaScript enthusiasts! πŸ‘‹ Are you ready to dive into Promises and make your async code cleaner and more fun? πŸŽ‰ Let’s break it down step-...
Collapse
 
vandeurenglenn profile image
Glenn Vandeuren

I would also add that while using promise.all could speedup things, it still runs in the same thread, many people don't realize this and end up wondering why their code is slow.

Collapse
 
jagroop2001 profile image
Jagroop Singh

Yes ,but I think it's okay.
At some situations speed matters and in some situations resources consumed.

Collapse
 
vandeurenglenn profile image
Glenn Vandeuren

I'm not sure if it's ok that 90 procent of the devs out there think Promise.all runs multiple threads

Thread Thread
 
jagroop2001 profile image
Jagroop Singh

🀣, soooo true.

Collapse
 
charles-22 profile image
Charles Jordan

Yes I agree with you.

Collapse
 
_aliraza profile image
Ali Raza

log:
1
3
2

Thanks for the nice article πŸŽ‰

Collapse
 
jagroop2001 profile image
Jagroop Singh

Absolutely correct !! @_aliraza ,
I hope you know the reason for this.

Collapse
 
matikiri profile image
Matikiri

Oke

Collapse
 
john12 profile image
john

WoW !! This is a Gem.
I really liked your javascript series.

Collapse
 
rmsilva1973 profile image
Renato Silva

I Promise people won't find a better article on the subject. πŸ˜‚

Collapse
 
jagroop2001 profile image
Jagroop Singh

Let me know what’s missingβ€”your feedback can make it even better! 😊

Collapse
 
nozibul_islam_113b1d5334f profile image
Nozibul Islam

great, thanks for sharing .

Collapse
 
jagroop2001 profile image
Jagroop Singh

You're welcome! 😊