Question from the Javascript - Fundamentals test

What does the function returned by myObject.myMethod() print?

Hard
const myObject = {
  myMethod() {
    const helperFunction = () => {
      console.log(this);
    }
    
    return function() {
      helperFunction();
    }
  }
};

const myMethod = myObject.myMethod();
myMethod();
Author: Tommy RozenbergStatus: PublishedQuestion passed 20 times
Edit
0
Community Evaluations
developer avatar
Dragon parfait
27/09/2024
I added french version. Thanks for your contribution Tommy