Which of the following is NOT a state of a Promise?

  • Pending
  • Resolved
  • Rejected
  • Completed
In JavaScript, a Promise can be in one of three states: Pending (initial state), Resolved (fulfilled with a value), or Rejected (fulfilled with an error). "Completed" is not a valid state for a Promise; it's either resolved or rejected.
Add your answer
Loading...

Leave a comment

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