JavaScript's this Keyword: Who's Calling?
The One Rule You Need to Know
Before anything else, burn this into your brain:
this refers to whoever called the function — not where the function was written.
That's it. Everything else is just var
blog-about-web-dev.hashnode.dev5 min read