The this Keyword

hard

Complete guide with examples and interview questions · 35 min

Definition

Say it out loud in an interview — clear, simple, no textbook wording.

this is a runtime binding that refers to the execution context of a function call. It is one of the most misunderstood JavaScript topics — and one of the most tested.

Quick Stats
35
Minutes
hard
Difficulty
4
Interview Q's

Key takeaways

  • this is determined by how a function is called, not where it is defined
  • Method call — this is the object before the dot
  • Arrow functions inherit this from the enclosing lexical scope
  • call, apply, and bind explicitly set this

Track your mastery

Sign in to save Q&A scores, coding challenge progress, points, and streaks across devices.

Sign in to save progress