DEV Community

TCZ
TCZ

Posted on

1

callback hells

I'm happy that I finally learned how promise, async, await, try and catch work together! Now I can remove many callback hells that exist in my node.js project. I did not know that they were called "callback hells" when I created them. But I did find it frustrating to write deeply nested code. With the promise-async-await-try-catch sword, I feel that I can conquer the hells now.

Top comments (0)

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

⭐️🎀 JavaScript Visualized: Promises & Async/Await

async await

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay