DEV Community

Discussion on: 6 simple rules to fully understand "this" keyword in JavaScript

Collapse
 
srikanth597 profile image
srikanth597

To fix it u can do any of this.
access it via closure instead of directly in the nested anonymous function i.e let that=this.
or manually apply bind(this) to nested function