Jun 6, 2017 · Tweet · June 2017 TIL in JS that if you add an event handler inside a for... TIL in JS that if you add an event handler inside a for loop when the handler is evaled it'll set the scope to the final for-loop value. ➛