JavaScriptMed

JavaScript this Keyword — How this Works in Every Context

The `this` keyword refers to the object that is executing the current function. Its value is determined by HOW a function is called, not where it's defined. There are 4 main rules that determine what `this` refers to.

3 concepts·4 practice problems·Intermediate level

Key Concepts

Topics Covered

Practice Problems

Common Mistakes to Avoid

Interview Tips