https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Global_Objects › Promise
Promise - JavaScript | MDN - MDN Web DocsL'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.
https://www.w3schools.com › Js › js_promise.asp
JavaScript Promises - W3SchoolsA 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.
https://developer.mozilla.org › fr › docs › Web › JavaScript › Guide › Using_promises
Utiliser les promesses - JavaScript | MDN - MDN Web DocsUne 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.
The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.
https://javascript.info › promise-basics
Promise - The Modern JavaScript TutorialA 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 ...
https://fr.javascript.info › promise-basics
Promesse (promise) - JavaScriptUne promesse (promise) est un objet spécial en JavaScript qui lie le “producteur de code” et le “consommateur de code” ensemble. En comparant à notre analogie c’est la “liste d’abonnement”.
https://javascript.info › promise-api
Promise API - The Modern JavaScript TutorialThe JavaScript language. Promises, async/await. February 20, 2022. Promise API. There are 6 static methods in the Promise class. We’ll quickly cover their use cases here. Promise.all. Let’s say we want many promises to execute in parallel and wait until all of them are ready.
https://www.pierre-giraud.com › javascript-apprendre-coder-cours › promesse-promise
Les promesses en JavaScript - Pierre GiraudL’ORIENTÉ OBJET EN JAVASCRIPT. Introduction à l’orienté objet en JavaScript. Création d’un objet JavaScript littéral et manipulation de ses membres. Définition et création d’un constructeur d’objets en JavaScript. Constructeur Object, prototype et héritage en JavaScript. Les classes en JavaScript. VALEURS PRIMITIVES ET OBJETS GLOBAUX JAVASCRIPT.
https://www.freecodecamp.org › news › javascript-promise-object-explained
How JavaScript Promises Work – Tutorial for BeginnersBasically, a Promise object represents a “pending state” in the most common sense: the promise will eventually be fulfilled at a later date. To give you an illustration, suppose you want to buy a new phone to replace your old phone, so you open a messaging app to contact a phone store.
https://www.javascripttutorial.net › es6 › javascript-promises
JavaScript Promises - JavaScript TutorialJavaScript Promises. Summary: in this tutorial, you will learn about JavaScript promises and how to use them effectively. Why JavaScript promises. The following example defines a function getUsers() that returns a list of user objects: function getUsers() { return [ { username: 'john', email: 'john@test.com' },