DEV Community

Discussion on: JavaScript Promises Explained By Gambling At A Casino

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez • Edited

Thank you for not using new Promise(); Multiple times, just once and then (badum tss) just chaining .then() that's how promises should be used.

I've seen so many tutorials around using/abusing new Promise(); when .then() already returns promises.

Edit:
I think I was not clear, bright explanation I really liked the reading and your example! keep writing more stuff!

Collapse
 
kbk0125 profile image
Kevin Kononenko

Haha I appreciate it Angel! Definitely clear.