In object methods, using arrow functions can lead to issues when relying on the this keyword, as it does not bind its own this, but inherits it from the ________ scope.

  • Parent
  • Global
  • Lexical
  • Block
Arrow functions inherit the this value from their lexical scope, which means the scope in which they were defined. This can lead to unexpected behavior when used in object methods.
Add your answer
Loading...

Leave a comment

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