DEV Community


Posted on

How I am Handling Promises - Traditional way vs Modern way

Handling Promises are very hard now a days, but there’s an easy way to deal it!

Traditional Way: so many then and catch blocks 🥴

old way of handling promises

Modern Way: With the help of async and await we can get rid of then and catch blocks and improves code readability! 🥳

modern way of handling promises

Comment your thoughts and share to your friends

Top comments (0)