JavaScript Associate — Easy
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
