QuizNot attempted
new vs bind
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- A brand new object (instance of A); the bound obj is ignored
newhas the highest precedence: constructing a bound function ignores the boundthisand creates a fresh object linked toA.prototype(bound arguments still apply).- Precedence:
new> explicit (bind/call/apply) > method call > plain call. - Not obj: bind loses to new.
- Not undefined: that is a strict-mode plain call.
- Not 'throws': bound regular functions are constructible (bound arrows aren't, because arrows never are).