What is the fundamental difference between window and document?

WHAT IT TESTS: Your mental model of the browser runtime layers. ANSWER OUTLINE: Window is the browser tab and global scope; document is the object-oriented DOM representation of the loaded page.
WHAT IT TESTS: Whether you understand the browser as a layered runtime where window is the tab and global scope, while document is the DOM interface for the loaded page content. ANSWER OUTLINE: A strong answer distinguishes window as the container for browser APIs, navigation, and the global this value from document as the root node of the DOM tree that exposes page structure, style, and content for programmatic manipulation.
Read the original → developer.mozilla.org
- #browser
- #dom
- #javascript
- #web-apis
- #frontend
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.