4.5 (1,790 ratings)
- The syntax for java script apply function is like object.propertyname.apply(obj, [“name1”, “name2”,….]) or function.apply (thisArg, [argsArray]). For java script call function, the syntax is like object.propertyname.call(obj, “name1”, “name2”, ….) or function.call(thisarg, arg1, arg2, ….).
- Apply function’s array-like objects does not accept by the browsers like chrome and internet explorer and sometimes it throws an exception also. For the call function, this situation does not arise.
|Constructor||Apply function can be used for chain constructors for an object.||Call function does not have this feature.|
|Variadic functions||Apply function able to use variadic functions||Call function not able to use.|