Understanding the this Keyword in JavaScript
this is not tied to where a function is written. It is determined by how that function is called. If you treat this as "the caller of the function", most cases become predictable.
What this represent
mohammadaman.hashnode.dev4 min read