Région de recherche :

Date :

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

Promise - JavaScript | MDN - MDN Web Docs

Learn how to use the Promise object to handle asynchronous operations in JavaScript. A Promise represents the eventual completion or failure of an operation and its resulting value.

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

Promise - JavaScript | MDN - MDN Web Docs

L'objet Promise permet de réaliser des traitements asynchrones en JavaScript. Découvrez comment créer, utiliser et enchaîner des promesses avec les méthodes then, catch et finally.

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

JavaScript Promises - W3Schools

Learn how to use JavaScript Promises to handle asynchronous code with callbacks. See examples of Promise syntax, properties, methods and browser support.

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://javascript.info › promise-basics

Promise - The Modern JavaScript Tutorial

Learn how to use promises, a special JavaScript object that links the producing code and the consuming code together. See examples of promise creation, resolution, rejection, and handling with .then and .catch methods.

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

Promesse (promise) - JavaScript

Apprenez à utiliser les promesses en JavaScript pour gérer les tâches asynchrones. Découvrez la syntaxe du constructeur, les états, les fonctions de retour et les méthodes de la promesse.

https://developer.mozilla.org.cach3.com › ... › JavaScript › Reference › Global_Objects › Promise

Promise - JavaScript | MDN - Mozilla Developer Network

Créer un objet Promise. Utiliser XMLHttpRequest () avec une promesse. Charger une image en XHR. Spécifications. Compatibilité des navigateurs. Voir aussi. L'objet Promise (pour « promesse ») est utilisé pour réaliser des traitements de façon asynchrone.

https://masteringjs.io › tutorials › fundamentals › promise-create

JavaScript Create Promise - Mastering JS

Learn how to create a new promise in JavaScript using four methods: the Promise constructor, static helpers, then() and catch(), and async functions. See examples, explanations, and tips for using promises effectively.

https://www.freecodecamp.org › news › how-to-use-promises-in-javascript

Asynchronous JavaScript – How to Use Promises in Your JS Code

Learn how to create, consume, and chain promises to handle asynchronous operations efficiently in JavaScript. Avoid callback hell and use .then(), .catch(), and async/await to simplify your code.

Asynchronous JavaScript – How to Use Promises in Your JS Code

https://web.dev › articles › promises

JavaScript Promises: an introduction | Articles - web.dev

To bring browsers that lack a complete promises implementation up to spec compliance, or add promises to other browsers and Node.js, check out the polyfill (2k gzipped). What's all the fuss about? JavaScript is single threaded, meaning that two bits of script cannot run at the same time; they have to run one after another. In browsers ...