Glossary coding Term Page
Promise
A value-like wrapper for a result that will arrive later
Core Idea
A Promise represents a result that is not ready yet but will eventually resolve or fail. It gives JavaScript a way to treat waiting work such as network requests, timers, and file reads as part of a readable control flow.
The key is that "future completion" becomes a value you can reason about. That is why then, catch, and async/await work, and why Promises sit at the center of topics such as the event loop and the microtask queue.
Why It Matters Here
Mathbong uses Promises repeatedly in JavaScript async basics, fetch flows, and loading/retry UX. They are the first major concept that makes asynchronous code feel structured instead of mysterious.