Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Implicit Bindings: When a function is called with a context, this keyword will be bound to that context.

  2. Explicit Bindings: Call and apply methods are used to explicitly bind this to a function.

  3. New Bindings: When a constructor function is called with the new keyword, a new object is created and this keyword is bound to that object.

  4. Window Binding: If none of the above bindings are present, this keyword will refer to the global object or the window object in a browser.