What does an arrow function expression NOT have compared to a regular function?

JavaScript Associate Easy

JavaScript Associate — Easy

What does an arrow function expression NOT have compared to a regular function?

Key points

  • Arrow functions lack their own this binding
  • Regular functions have their own this context
  • Arrow functions inherit the this value from the surrounding code
  • Regular functions create a new this context
  • This distinction affects how functions interact with objects and classes

Ready to go further?

Related questions