Beginner
JavaScript
Q11 / 100
What is a Promise in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) An object representing the eventual completion or failure of an asynchronous operation
B
Correct Answer
An object representing the eventual completion or failure of an asynchronous operation
Explanation
Promises have three states: pending, fulfilled, and rejected. Chain with .then() and .catch(). Use async/await for cleaner syntax.
Progress
11/100