The Magic of this, call(), apply(), and bind() in JavaScript
When developers first start learning JavaScript, one word quietly creates a lot of confusion:
this
At first glance, it feels mysterious.Sometimes it refers to an object.Sometimes it refers to window
devwithsantosh.hashnode.dev6 min read