The call() apply() bind() method in JS changes this

We all know the direction of this: Always adhere to a principle: this always points to the object that was invoked at last, because the object of calling function is different, which leads to the different direction of this. However, the direction of this can be changed by using call apply bind: call method Syntax: fun call(thisArg, arg1, ...

Posted by maheshbaba on Wed, 05 Jan 2022 06:40:19 +0100