Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptthis in callbacks vs methodsSingle-choice MCQ

What does this log, given how method extraction affects `this`?

const counter = { count: 0, bump() { this.count++; return this.count; } }; const { bump } = counter; const safe = bump.bind(counter); console.log(safe(), safe(), typeof bump);