OrderNot attempted
Precedence of this rules
Order the ways this gets decided, from HIGHEST priority to lowest (for regular functions).
Drag the rows, or use the arrows, to put them in order from first to last.
- Default binding: plain call
fn()(undefined in strict mode) - Implicit binding: method call
obj.fn() - Explicit binding:
bind/call/apply newbinding (constructor call)
Show answer & explanation
Correct order:
newbinding (constructor call)- Explicit binding:
bind/call/apply - Implicit binding: method call
obj.fn() - Default binding: plain call
fn()(undefined in strict mode)
new beats even a bound function. Hard binding beats a method call. Arrow functions sit outside this list entirely: they take this from their enclosing scope.