जॉइन Examsbook
1313 0

प्र: How can you avoid callback hells ?

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

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)

क्या आपको यकीन है

  त्रुटि की रिपोर्ट करें

कृपया संदेश दर्ज करें
त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई