JavaScript Professional — Medium
Key points
- The use of `this` inside a nested function can lead to unexpected behavior
- Arrow functions can help maintain the correct context of `this`
- Understanding scope and context is crucial in JavaScript
Ready to go further?
Related questions
