0 votes
in Node.js by
How can you avoid callback hells?

1 Answer

0 votes
by (2.8k points)
There are following ways to solve callback hells in node.js:

    1. Use control flow library, like async
    2. Use generators with Promises
    3. Modularization: break callbacks into independent multiple functions
    4. Use async/await

Share:- Whatsapp Facebook Facebook

Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.