Explain it in 60 seconds
Realms, structured cloning and cross-context data
Frontend Engineering · JavaScript Core · Experienced
What are realms in JavaScript, and how does structured cloning work across contexts?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Realm: separate global environment (iframe, worker).
- Separate built-ins (Array differs).
- instanceof breaks across realms.
- Structured clone algorithm copies data for postMessage/storage.
- Can't clone functions, DOM nodes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.