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

A regular function is nested inside a method and then called by name. In an ES module (strict mode), what does it log?

const obj = { v: 42, outer() { function inner() { return this; } return inner(); }, }; console.log(obj.outer());