Région de recherche :

Date :

https://developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Promise

Promise - JavaScript | MDN - MDN Web Docs

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. Description. A Promise is a proxy for a value not necessarily known when the promise is created.

https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Global_Objects › Promise

Promise - JavaScript | MDN - MDN Web Docs

L'objet Promise (pour « promesse ») est utilisé pour réaliser des traitements de façon asynchrone. Une promesse représente une valeur qui peut être disponible maintenant, dans le futur voire jamais. Note: Cette fonctionnalité est disponible via les Web Workers.

https://www.w3schools.com › Js › js_promise.asp

JavaScript Promises - W3Schools

A Promise is an Object that links Producing code and Consuming code. JavaScript Promise Object. A Promise contains both the producing code and calls to the consuming code: Promise Syntax.

https://www.freecodecamp.org › news › what-is-promise-in-javascript-for-beginners

What is a Promise? JavaScript Promises for Beginners - freeCodeCamp.org

A promise is simply a placeholder for an asynchronous task which is yet to be completed. When you define a promise object in your script, instead of returning a value immediately, it returns a promise. How to Write a Promise in JavaScript. You can define a promise in your JavaScript by calling the Promise class and constructing an ...

What is a Promise? JavaScript Promises for Beginners - freeCodeCamp.org

https://developer.mozilla.org › fr › docs › Web › JavaScript › Guide › Using_promises

Utiliser les promesses - JavaScript | MDN - MDN Web Docs

Une promesse est un objet (Promise) qui représente la complétion ou l'échec d'une opération asynchrone. La plupart du temps, on « consomme » des promesses et c'est donc ce que nous verrons dans la première partie de ce guide pour ensuite expliquer comment les créer.

https://fr.javascript.info › promise-basics

Promesse (promise) - JavaScript

Une promesse (promise) est un objet spécial en JavaScript qui lie le producteur de code et le consommateur de code ensemble. Découvrez la syntaxe, les états et les méthodes des promesses avec des exemples et des analogies.

https://javascript.info › promise-basics

Promise - The Modern JavaScript Tutorial

A promise is a special JavaScript object that links the “producing code” and the “consuming code” together. In terms of our analogy: this is the “subscription list”. The “producing code” takes whatever time it needs to produce the promised result, and the “promise” makes that result available to all of the subscribed code ...

https://web.dev › articles › promises

JavaScript Promises: an introduction | Articles - web.dev

Promises arrive in JavaScript! Promises have been around for a while in the form of libraries, such as: Q; when; WinJS; RSVP.js; The above and JavaScript promises share a common, standardized behaviour called Promises/A+. If you're a jQuery user, they have something similar called Deferreds.

https://www.freecodecamp.org › news › the-javascript-promises-handbook

How JavaScript Promises Work – Handbook for Beginners - freeCodeCamp.org

How JavaScript Promises Work – Handbook for Beginners. Many operations, such as network requests, are asynchronous in nature. One of the most useful and powerful tools for working with asynchronous code is the Promise. In this handbook, you'll learn all about JavaScript Promises and how to use them.

How JavaScript Promises Work – Handbook for Beginners - freeCodeCamp.org

https://www.toptal.com › javascript › javascript-promises

JavaScript Promises: A Tutorial With Examples - Toptal

What is a JavaScript promise? A promise is a method that eventually produces a value. It can be considered as the asynchronous counterpart of a getter function. Its essence can be explained as: promise.then(function(value) { // Do something with the 'value' });

JavaScript Promises: A Tutorial With Examples - Toptal