Understanding this, call(), apply(), and bind() in JavaScript
What this Means in JavaScript
Think of this as the object that is calling the function.
In simple words:
this = the caller of the function
Example:
const person = {
name: "Rahul",
greet: function
understandingthiscallapplyandbindinjavascript.hashnode.dev4 min read