f a JavaScript object o is of type class X, and there is a method m on class X, and you run this let f = o.m; f(); What will the value of this be inside m? code example
Example: how to use this in js
// In web browsers, the window object is also the global object:
console.log(this === window); // true
a = 37;
console.log(window.a); // 37
this.b = "MDN";
console.log(window.b) // "MDN"
console.log(b) // "MDN"