This Question is intended to be a canonical Question/Answer; see What is a canonical question/answer, and what is their purpose?. Do not have the definitive Answer, here. In lieu of the Question having previously been asked and answered am posting the Question here. If the Question has already been answered, will delete the present Question.
The Promises/A+ specification at point-2 states
A promise represents the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its
then
method, which registers callbacks to receive either a promise’s eventual value or the reason why the promise cannot be fulfilled.
At a comment at this Question return value from Promise OP asks
Right, but does not that take the value out of the promise, or should I accept that this is impossible from the browser?
to which responded
Hesitant to state what is "impossible".
followed by providing links to the specification, Promises, You're Missing the Point of Promises.
Is it impossible to get the [[PromiseValue]]
from a Promise
object, other than viewing the property value of the object at console.log(promiseObject)
, without using the Promise
object's then
method?