JavaScript Category
PROMISE
Represents a future async result.
Definition
A Promise models an asynchronous operation that can resolve with a value or reject with an error. It standardizes async flow and avoids deeply nested callback chains.
Practical Example & Use Case
When fetching profile data, the frontend waits on a Promise from `fetch`, then updates UI states for loading, success, and error in a predictable sequence.
Editorial review date: 2026-03-10