The usage value thisis to set the current context when calling the method. For instance:
function Human() {
this.getMax = function getMax(arr) {
console.log(this.constructor);
return Math.max.apply(this, arr);
}
}
var human = new Human();
human.getMax([1,2]);
this.constructor Human. , .
, null, . , Math.max a, b, c, , .apple.