What Is a Promise?
Question
Which statement best describes a Promise in JavaScript?
Hint
Promises are about async work that finishes later.
Explanation
A Promise is an object that represents the eventual completion (or failure) of an asynchronous operation and its resulting value. It lets you write code that runs later without blocking the main thread. A Promise is in one of three states: pending, fulfilled, or rejected. It is not synchronous, not a loop, and not a variable keyword.
Related Resources
Related Lessons
- Async JavaScript
Learn about Promises and async/await.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.