Pregunta de entrevista de AIONOS

What are promises in javascript?

Respuesta de la entrevista

Anónimo

3 jul 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.