Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
JavaScript
hard
JavaScript
this in callbacks vs methods
Single-choice MCQ
3 views
What does this code log?
const o = { x: "b", f() { return this.x; } };\nconsole.log(o.f());