About 296,000 results
Open links in new tab
  1. Promise.prototype.then () - JavaScript | MDN - MDN Web Docs

    Jul 15, 2025 · The then () method of Promise instances takes up to two arguments: callback functions for the fulfilled and rejected cases of the Promise. It stores the callbacks within the promise it is …

  2. JavaScript Promise then () Method - W3Schools

    Description The then() method provides two callbacks: One funtion to run when a promise is fulfilled and one funtion to run when a promise is rejected.

  3. What does the function then() mean in JavaScript? - Stack Overflow

    Oct 8, 2010 · then () function is related to "Javascript promises" that are used in some libraries or frameworks like jQuery or AngularJS. A promise is a pattern for handling asynchronous operations.

  4. Why we use then() method in JavaScript ? - GeeksforGeeks

    Jul 15, 2025 · The then () method in JavaScript is used with promises to handle asynchronous operations. It accepts two callback functions: one for handling a promise's resolved value and one for …

  5. JavaScript Promise then () Method: Handling Fulfillment

    Feb 6, 2025 · The then() method is a fundamental part of the JavaScript Promise API, used to handle the fulfillment (successful resolution) of a Promise. It allows you to specify what should happen when …

  6. A Deep Dive into .then () Method in JavaScript: How to Use it Like a ...

    Apr 25, 2023 · Whether you're a novice JavaScript developer or a seasoned programmer, mastering.then can help you advance your code. In this post, we'll examine the potential of.then and …

  7. The .then () Method: Your Guide to Asynchronous JavaScript

    Sep 3, 2024 · The .then() method is a fundamental part of JavaScript's promise API. It helps you manage asynchronous operations gracefully, making your code cleaner, more organized, and more …

  8. JavaScript then () method - EyeHunts

    Jun 2, 2023 · The then() method in JavaScript is used with promises to handle the fulfillment or rejection of an asynchronous operation. It takes one or two callback functions as arguments, which are …

  9. JavaScript Demo: Promise.then () - Mozilla

    // Expected output: "Success!"

  10. promise.then - JavaScript - W3cubDocs

    then() returns a new promise object. If you call the then() method twice on the same promise object (instead of chaining), then this promise object will have two pairs of settlement handlers. All handlers …