employer cover photo
employer logo
employer logo

VectoScalar Technologies

Is this your company?

VectoScalar Technologies interview question

what are promises in javascript?

Interview Answer

Anonymous

21 June 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.