To perform an action once a Promise is settled, regardless of its outcome, you can use the .finally() method, which is called on the ________ of a Promise.

  • rejection
  • resolution
  • completion
  • termination
To perform an action once a Promise is settled, regardless of whether it's fulfilled or rejected, you can use the .finally() method. This method is called on the "completion" of a Promise. It's often used for cleanup operations.
Add your answer
Loading...

Leave a comment

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