Understanding The “this” Keyword in JavaScript by 5 Simple Rules
The 5 rules to master “this” keyword
You probably know about this
from languages like C# and JavaScript’s this
is quite similar.
But JavaScript is a prototype-based language and does not have the class
concept. Means this
points to the object which is calling the function. Sometimes called context.