Can Promises help in avoiding callback hell in asynchronous JavaScript code?

  • TRUE
  • FALSE
  • Only in specific cases
  • Depends on the browser
Promises play a crucial role in avoiding callback hell in asynchronous JavaScript code. By using promises, you can chain asynchronous operations more cleanly, making the code more readable and maintainable. Option A is correct because Promises are indeed effective in this context.
Add your answer
Loading...

Leave a comment

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