No. The first bind wins. bound.bind(newObj) does not change this. The bound function keeps the original this from the first bind call.
call, apply, and bind Interview Questions
Can you re-bind a function that is already bound in JavaScript?
The answer
More FAQs in call, apply, and bind Interview Questions
Array.prototype.slice.call(arguments). This borrows the slice method from Array.prototype and applies it to the array-like arguments object.
Nothing. The arrow function's this is lexical (inherited from the enclosing scope). bind, call, and apply cannot change an arrow's this.
15. call sets this to obj (so this.x is 10) and passes 5 as y. 10 + 5 = 15.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.