In JavaScript, the "this" keyword inside an arrow function is defined by its _________ context.

  • Global
  • Lexical
  • Local
  • Execution
In JavaScript, the "this" keyword inside an arrow function is defined by its lexical context. Unlike regular functions, arrow functions do not have their own "this" binding, so they inherit the "this" value from the surrounding code block, which is determined by the lexical scope.
Add your answer
Loading...

Leave a comment

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