https://www.w3schools.com › Js › js_promise.asp
JavaScript Promises - W3SchoolsLearn how to use JavaScript Promises to handle asynchronous code with callbacks. See examples of how to create, resolve, reject and consume promises with timeout and file loading scenarios.
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://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.
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.
Learn how to use the Promise object to handle asynchronous operations in JavaScript. See examples of creating, chaining, and resolving promises with different methods and states.
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”. Le “producteur de code” prend le temps nécessaire pour produire le résultat promis, et la “promesse” donne le résultat ...
https://www.toptal.com › javascript › javascript-promises
JavaScript Promises: A Tutorial With Examples - ToptalWhat 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' });
https://javascript.info › promise-api
Promise API - The Modern JavaScript TutorialLearn how to use the Promise class and its methods to handle asynchronous operations in JavaScript. See examples of Promise.all, Promise.allSettled, and other static methods.
https://www.freecodecamp.org › news › guide-to-javascript-promises
How Promises Work in JavaScript – A Comprehensive Beginner's GuideHere are the topics we will cover: Why should you care about promises? What is a promise? How to create a promise in JavaScript. How to attach a callback to a promise. How to handle errors in a promise. How to handle many promises at once. What is the async/await syntax? How to create an async function in JavaScript. How to use the await keyword.
https://fr.javascript.info › promise-api
Promesse API - JavaScriptPromesse API. Il y a 6 méthodes statiques dans la classe Promise. Nous allons rapidement couvrir leurs usages ici. Promise.all. Disons que nous voulons exécuter de nombreuses promesses en parallèle, et attendre qu’elles soient toutes prêtes. Par exemple, téléchargez plusieurs URLs en parallèle et traitez le contenu lorsque tout est terminé.