Tag: Call
-
Video- Why You need the apply() and the call() methods in JavaScript
To pass value of ‘this’ object in a function apply and the call methods are used. The apply() and the call() methods are used to call a function indirectly. When you call a function using the apply() and the call() methods, that is called Indirect Invocation Pattern . The first parameter is always the…
-
What are the Call and Apply Methods in JavaScript
Read full article on the Infragistics blog In JavaScript, the apply() and call() methods execute a function in the context (scope) of the first argument you pass to them. Let’s take a look at them in action to learn more. Say that you have an object person as shown below: This file contains bidirectional Unicode text that…