Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptthis in callbacks vs methodsSingle-choice MCQ3 views

What does this code log?

const o = { x: "b", f() { return this.x; } };\nconsole.log(o.f());