3 ms·
Ah, but what is the value of 'this' when those handler functions are called?
by badman_ting 13y ago
Ah, but what is the value of 'this' when those handler functions are called?
- epidemian 13y agoArrow functions preserve the 'this' of their enclosing context: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/arrow_functions#Lexical_this https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... :)