Which method is used to handle the successful resolution of a Promise?

  • .then()
  • .catch()
  • .finally()
  • .resolve()
To handle the successful resolution of a Promise, you use the .then() method. This method allows you to specify what should happen once the Promise is fulfilled or successfully resolved. It takes a callback function as its argument, which gets executed when the Promise is resolved.
Add your answer
Loading...

Leave a comment

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