logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How can you avoid callback hells ?


  • Correct Answer
  • There are lots of ways to solve the issue of callback hells: 1 Modularization: break callbacks into independent functions 2 Use a control flow library, like async 3 Use generators with Promises 4 Use async/await (note that it is only available in the latest v7 release and not in the LTS version) 

  • Tags: Analyst, IT Trainer

    Technology problems


    Search Results


    • 1. What is Spring IoC container ?
    • Discuss
    • 2. Difference between Arraylist and Linked list?
    • Discuss
    • 3. How to identify a given positive decimal number as even/odd without using % or / operator ?
    • Discuss
    • 4. Which containers use a FlowLayout as their default layout ?
    • Discuss
    • 5. What is WATER MARK in oracle? Explain the significance of High water mark.
    • Discuss
    • 6. What is the difference between ViewState and SessionState?
    • Discuss
    • 7. What is immutable object? Can you write immutable object ?
    • Discuss
    • 8. Which of the following are incorrect form of StringBuffer class constructor ?

    • Options
    • A. StringBuffer(int size , String str)
    • B. StringBuffer(int size)
    • C. StringBuffer(String str)
    • D. StringBuffer()
    • Discuss
    • 9. What is the string contained in s after following lines of code? StringBuffer s = new StringBuffer(?Hello?); s.deleteCharAt(0); ?

    • Options
    • A. llo
    • B. Hllo
    • C. ello
    • D. H
    • Discuss
    • 10. What is Cocoa and cocoa touch?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment