Can you change the this of a function that's already bound? What does this log?
function show() {
return this.id;
}
const a = { id: "a" };
const b = { id: "b" };
const boundToA = show.bind(a);
const rebound = boundToA.bind(b);
const holder = { id: "holder", show: boundToA };
console.log(boundToA());
console.log(boundToA.call(b));
console.log(rebound());
console.log(holder.show());
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…