Get Started
1013

Q: How can you avoid callback hells ?

  • Show 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)

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today