
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 …
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.
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.
JavaScript Promise then () Method - GeeksforGeeks
Jul 23, 2025 · JavaScript Promise then () method is called whenever a promise is resolved. It takes data from the resolved promise. It can take up to two arguments which are callback functions for the …
JavaScript Promise then () Method: Handling Fulfillment
Feb 6, 2025 · What is the then () Method? 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 …
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 …
JavaScript Promises – The promise.then, promise.catch and promise ...
May 16, 2022 · When a promise is fulfilled, you can access the resolved data in the then method of the promise: Think of the then method as "this works and then do this with the data returned from the …
Leveraging .then () in Modern JavaScript, by John Kavanagh
The .then() method is a fundamental part of the Promise prototype in JavaScript. It provides a way to handle the eventual completion (or failure) of asynchronous operations, whilst offering a cleaner, …
JavaScript Promises - W3Schools
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.
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 …