Constructor interview question

(JavaScript) What is a Promise?

Interview Answer

Anonymous

25 Aug 2025

A Promise is an object representing the eventual completion or failure of an asynchronous operation. It allows handling asynchronous code in a more readable and manageable way using .then() for success and .catch() for errors.