Understanding this, bind, call, and apply in JavaScript
In JavaScript, this is a reference to an object. What this refers to can change depending on the context in which a function is called. Sometimes it’s decided implicitly by how the function is called, and sometimes you can set it explicitly using bin...
call-apply-bind-in-js.hashnode.dev7 min read