Join Examsbook
975 0

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)

Are you sure

  Report Error

Please Enter Message
Error Reported Successfully