A promise is a JavaScript object representing the eventual completion or failure of an asynchronous operation and its resulting value. It supports non-blocking, event-driven programming alongside the event loop and async/await. section 3.12 section 3.3
Because JavaScript runs synchronously by default and can block the main thread during long-running work, promises help schedule asynchronous tasks without freezing responsive web applications. section 3.3
API request
An API request is a representative asynchronous operation: promise-based scheduling keeps the application responsive while the request is processed, then exposes its resulting value or failure for follow-up handling. section 3.3










