Window

Noun · Development

Definitions

  1. The global object in browser JavaScript that represents the browser tab or frame, providing access to the DOM (document), navigation (location), timers (setTimeout), storage APIs, and serving as the default scope for global variables and functions.

    In plain English: The main object in a browser that represents the entire tab and gives JavaScript access to everything on the page.

    Example: "Avoid polluting the window object with global variables — use modules or an IIFE to keep your scope clean."

Related Terms