Assertion: promise's method | /r/CapableOf | return promise
Facets:
value: of returning the final value
type: MANNER
Source sentences:
text: The then() method returns a Promise .
text: The then method returns a Promise which allows for method chaining.
text: This lets asynchronous methods return values like synchronous methods: instead of immediately returning the final value, the asynchronous method returns a promise to supply the value at some point in the future.
text: The then method returns a promise, which in this example, I’m assigning to outputPromise .
text: This is useful because it is often helpful for methods to be able to return a promise or a direct value.
text: As the Promise.prototype.then() and Promise.prototype.catch() methods return promises, they can be chained.
text: As the then and Promise.prototype.catch() methods return promises, they can be chained — an operation called composition.