Advanced JavaScript
Q63 / 100

What is realm in JavaScript contexts?

Correct! Well done.

Incorrect.

The correct answer is B) An isolated global environment (its own global object, intrinsics, and code) — iframes and workers run in separate realms

B

Correct Answer

An isolated global environment (its own global object, intrinsics, and code) — iframes and workers run in separate realms

Explanation

Each realm has its own Array, Object, etc. An array from another realm fails instanceof Array in the main realm — use Array.isArray() for cross-realm checks.

Progress
63/100