Understanding this in JavaScript
Introduction
Most JavaScript confusion around this comes from one wrong assumption: that this depends on where a function is defined. It doesn't. It depends on who called the function.
That one shift
blog.sameerbhagtani.dev4 min read