Pergunta de entrevista da empresa VectoScalar Technologies

what are promises in javascript?

Resposta da entrevista

Sigiloso

21 de jun. de 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.