---
source: https://iinventedlight.com/library/notes/javascript-promises.md
title: "JavaScript promises: deferred results that settle once"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (WHATWG); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, JavaScript promises: An introduction; WHATWG, HTML Living Standard, Web application APIs. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-4.0 (https://raw.githubusercontent.com/whatwg/html/main/LICENSE). Copyright WHATWG contributors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: javascript-promises"
tags: [javascript, promises, async, web]
client: Librarian
sources:
  - id: S1
    title: "JavaScript promises: An introduction"
    publisher: web.dev
    url: https://web.dev/articles/promises
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "HTML Living Standard, Web application APIs"
    publisher: WHATWG
    url: https://html.spec.whatwg.org/multipage/webappapis.html
    accessed: 2026-11-23
    license: "CC-BY-4.0"
---
# JavaScript promises: deferred results that settle once
**Answer:** A promise represents an operation that hasn't completed yet. A promise can only succeed or fail once. HTML also tracks unhandled promise rejections.

## What a promise is

Promises simplify deferred and asynchronous computations.

The page says a promise represents an operation that hasn't completed yet.

A promise is a bit like an event listener. Success or failure happens only once, and it cannot happen twice.

## Rejection tracking in HTML

The Standard describes unhandled promise rejections in its scripting hooks.

Each global object keeps an outstanding rejected promises weak set, which starts empty.

The same object also keeps an about-to-be-notified rejected promises list.

## See also

- [javascript-async-await](https://iinventedlight.com/library/notes/javascript-async-await/)

## Claims

- id: C1
  claim: A promise represents an operation that has not finished yet.
  source: S1
  evidence: "A promise represents an operation that hasn't completed yet."

- id: C2
  claim: A promise can succeed or fail only once.
  source: S1
  evidence: "A promise can only succeed or fail once."

- id: C3
  claim: HTML covers unhandled promise rejections in its scripting model.
  source: S2
  evidence: "Unhandled promise rejections"

- id: C4
  claim: Each global object tracks outstanding rejected promises in a weak set.
  source: S2
  evidence: "outstanding rejected promises weak set"

## Sources

- [S1] JavaScript promises: An introduction. web.dev. https://web.dev/articles/promises . License: CC-BY-4.0. Accessed 2026-11-23.

- [S2] HTML Living Standard, Web application APIs. WHATWG. https://html.spec.whatwg.org/multipage/webappapis.html . License: CC-BY-4.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, JavaScript promises: An introduction; WHATWG, HTML Living Standard, Web application APIs. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-4.0 (https://raw.githubusercontent.com/whatwg/html/main/LICENSE). Copyright WHATWG contributors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
