Skip to content

An unclear sentence about promises #41538

@lkintact

Description

@lkintact

MDN URL

https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Async_JS/Promises

What specific section or headline is this issue about?

Chaining promises

What information was incorrect, unhelpful, or incomplete?

Hi,
There's a phrase in the article:

"But the elegant feature of promises is that then() itself returns a promise, which will be completed with the result of the function passed to it".

Sorry if I'm simply being dumb, but for me, as a beginner in promises, that sounds unclear, and raises questions:

  1. What does it mean that a promise will be "completed" with the result of the function? Perhaps "settled" is meant?
  2. What is the "result" of the function? Perhaps "return value" is meant?
  3. To what ("to it") will the "result" be passed, then() or the promise?

What did you expect to see?

A sentence understandable by people the article is intended for.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions