About 3,680,000 results
Open links in new tab
  1. Promise - JavaScript | MDN - MDN Web Docs

    Sep 18, 2025 · To learn about the way promises work and how you can use them, we advise you to read Using promises first. A Promise is a proxy for a value not necessarily known when the …

  2. JavaScript Promises - W3Schools

    Here is how to use a Promise: Promise.then () takes two arguments, a callback for success and another for failure. Both are optional, so you can add a callback for success or failure only. To …

  3. Learn JavaScript Promises - W3Schools

    In this tutorial, you will learn how JavaScript Promises work and how they simplify asynchronous code. You will understand how to create and use Promises, handle results using .then() and …

  4. JavaScript Promise - GeeksforGeeks

    Jul 11, 2025 · JavaScript Promises make handling asynchronous operations like API calls, file loading, or time delays easier. Think of a Promise as a placeholder for a value that will be …

  5. How to use promises - Learn web development | MDN

    Oct 20, 2025 · Promises are the foundation of asynchronous programming in modern JavaScript. They make it easier to express and reason about sequences of asynchronous operations …

  6. JavaScript Promise - W3Schools

    The Promise Object represents the completion or failure of an asynchronous operation and its results. A Promise can have 3 states: One funtion to run when a promise is fulfilled. One …

  7. Using promises - JavaScript | MDN

    Jul 15, 2025 · A Promise is an object representing the eventual completion or failure of an asynchronous operation. Since most people are consumers of already-created promises, this …