How the ‘this’ keyword changes when used in different contexts

Cheri Hung
JavaScript in Plain English
9 min readApr 21, 2020

--

Not all functions are created equal. How we use function affects its context and scope. Learning more about functions is a great way to get a handle on how JavaScript evaluates this, which truly deserves its separate series.

First off, some basics terminologies. Or if you already know them, skip halfway to regular vs arrow and DOM events.

--

--