Understanding Call, Apply, and Bind: Essential Methods in JavaScript
1️⃣ The Magic of this in JavaScript
this refers to the object that is executing the current function.
But the tricky part is: its value depends on how the function is called, not where it is defined.
the-magic-of-javascrip.hashnode.dev3 min read