All challenges
Multiple ChoiceBeginner 30s

this in Methods

Choose the best answer for: this binding
Options
  1. 1this refers to the class definition where the method lives
  2. 2this in a method refers to the object the method is called on
  3. 3this always refers to the global window object in methods
  4. 4this is lexically bound like variables in arrow functions

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle