This Chair — JavaScript

Guess which chair this sits in from how the function is called: 7 levels of this binding, call, apply and bind, arrow functions and new.

What you learn in this game

this inside a regular function is not decided when the function is written but when it is called. The way it is called picks one of five chairs: the object left of the dot (x.f()), a plain call (f()), call/apply/bind, new, or an arrow function that borrows this from where it was written.