In Javascript, OOP is different from what you are used to in languages ββlike Java.
, , this " " .
,
function f(x, y, z) {
console.log(this, x, y, z);
}
, ( Java),
function f(this, x, y, z) {
console.log(this, x, y, z);
}
var a = b.f(x, y, z);, var a = f(b, x, y, z).
var a = f(x, y, z); think var a = f(undefined, x, y, z); ( , , f(window, x, y, z);).
, this .