JavaScript This_keyword Guide
The `this` keyword refers to the execution context. Its value depends on how the function is called, not where it is defined. The guide walks through this in Different Contexts. Global: `this` = window (browser) or global (Node). Object method: `this` = the object. Constructor (new): `this` = new instance. Event handler: `this` = the element. Arrow function: `this` = outer lexical scope (not rebound). Explicit: `.call(thisArg)`, `.apply(thisArg)`, `.bind(thisArg)`. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.