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:
- What does it mean that a promise will be "completed" with the result of the function? Perhaps "settled" is meant?
- What is the "result" of the function? Perhaps "return value" is meant?
- 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
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:
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
en-us/learn_web_development/extensions/async_js/promises