callbeginnerconst arr = [1, 2, 3]
Math.max.call(null, ...arr) // β 3Use call() to invoke built-in methods with a custom this or argument list.
When you pass an object as thisArg, this inside the function will be that object. typeof that object is 'object'.
Challenge: Verify that typeof getThis.call({x: 1}) returns 'object'.