JS Built-ins
Functionapplybeginner

Function.prototype.apply β€” typeof

πŸ“– Usage Example
// ES6 spread is often cleaner than apply:
Math.max(...[1,2,3])  // β†’ 3

Modern code often uses spread syntax instead of apply() for array arguments.

typeof Function.prototype.apply

apply is a method on Function.prototype, so typeof Function.prototype.apply returns 'function'.

Challenge: Verify that typeof Function.prototype.apply is 'function'.

πŸ’‘ Hints (1)
  • β€’ `apply` lives on `Function.prototype` and is therefore a function itself.