What are the four rules that decide this in a normal function (in order of priority)?
Tap to flip
Back
1. new f(): this is the new object 2. Explicit: f.call(obj), f.apply(obj), f.bind(obj) 3. Implicit: obj.f() uses obj (the object before the dot at call time) 4. Default: undefined in strict mode, global object otherwise
Arrow functions ignore all of these and use the this of the enclosing scope.