When using arrow functions with higher-order functions like Array.prototype.map, this will refer to the ________ where the arrow function was defined.

  • Global Object
  • Callback Function
  • Scope Chain
  • Enclosing Function
Arrow functions capture the this value from their surrounding lexical scope. In the context of higher-order functions, this is crucial to understanding and avoiding potential issues.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *