JavaScript·Advanced·Conceptual·1 min read
What information does a realm contribute?
Short interview answer
A realm groups intrinsic objects and a global environment. Values from another iframe can therefore have different intrinsic constructors, affecting checks such as instanceof.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.