Pregunta de entrevista de VectoScalar Technologies

what are promises in javascript?

Respuesta de la entrevista

Anónimo

21 jun 2024

In JavaScript, promises are a way to handle asynchronous operations. They represent a value that may be available now, in the future, or never. Promises can be in one of three states: Pending: Initial state, neither fulfilled nor rejected. Fulfilled: The operation completed successfully. Rejected: The operation failed.