Which of the following options is a technique to manage callback hell in JavaScript?

  • Promises
  • Event emitters
  • Error handling strategies
  • Callback chaining
Promises are a technique in JavaScript to manage callback hell. They provide a more structured and readable way to handle asynchronous operations, allowing you to chain multiple asynchronous calls together, making the code cleaner and easier to understand.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *