Skip to content
JavaScript·Advanced·Conceptual·1 min read

What does Promise.resolve do with a thenable?

Short interview answer

It assimilates the thenable by reading and invoking its then method according to promise resolution rules, protecting against multiple settlement attempts and thrown accessors.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Promises

Related questions