Join ExamsbookAnswer :
How can you avoid callback hells ?5
Q: How can you avoid callback hells ?
- Show AnswerHide Answer
- Workspace
Answer :
Explanation :
There are lots of ways to solve the issue of callback hells: 1. Modularization: break callbacks into independent functions2. Use a control flow library, like async3. Use generators with Promises4. Use async/await (note that it is only available in the latest v7 release and not in the LTS version)