FrontendInterviews.dev

624. bind and Rebinding

Easy•

Predict the output.

function f() { return this.v }
const a = { v: 1 }
const b = { v: 2 }
console.log(f.bind(a).bind(b)())

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem