Yahoo Web Search

Search results

  1. People also ask

  2. A JavaScript Promise object can be: The Promise object supports two properties: state and result. While a Promise object is "pending" (working), the result is undefined. When a Promise object is "fulfilled", the result is a value. When a Promise object is "rejected", the result is an error object.

  3. Oct 7, 2024 · The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. To learn about the way promises work and how you can use them, we advise you to read Using promises first.

  4. May 22, 2023 · Promises have three states: pending, resolved, or rejected. When a Promise is either resolved or rejected, it is considered settled. In this post, I’ll present a comprehensive guide to Promises....

    • Stephanie Zhan
  5. A promise in JavaScript can be in one of three states: Pending: The initial state of a promise. The operation has not completed yet. Fulfilled: The operation completed successfully, and the promise has a resolved value. Rejected: The operation failed, and the promise has a reason for the failure. Pending.

  6. Oct 9, 2023 · A Promise has three states in its structure, and when a Promise is initiated, it is in one of these three states: Pending: This is the initial state when the Promise is neither fulfilled nor ...

    • Murat Cakmak
  7. Jun 20, 2024 · A Promise can be in one of three states: Pending: Initial state, neither fulfilled nor rejected. Fulfilled: The operation completed successfully. Rejected: The operation failed. The state...

  8. Jun 10, 2024 · States: A Promise can be in one of three states: Pending : The initial state, where the outcome is not yet determined. Fulfilled : The operation completed successfully.

  1. People also search for