Question d’entretien chez AIONOS

What are promises in javascript?

Réponse à la question d'entretien

Utilisateur anonyme

3 juil. 2025

- Promises in JavaScript are objects that represent the eventual completion or failure of an asynchronous operation. - They have three states: pending, fulfilled, and rejected, helping manage async flow cleanly. - You can handle results using .then() for success and .catch() for errors, avoiding callback hell.