How to Stop setTimeout From Losing This

Methods lose context when passed to timers.

#javascript #this #settimeout #bug #howto #context

https://www.youtube.com/watch?v=x6_dhTpC-tM

How to Stop setTimeout From Losing This #setTimeout

YouTube