JS: call() and apply()
The difference is:
The call() method takes arguments separately.
The apply() method takes arguments as an array.
www.w3schools.com/js/js_function_call.asp
JavaScript Function call()
JavaScript Function Call Method Reuse With the call() method, you can write a method that can be used on different objects. All Functions are Methods In JavaScript all functions are object methods. If a function is not a method of a JavaScript object, it i
www.w3schools.com
https://www.w3schools.com/js/js_function_apply.asp
JavaScript Function Apply()
JavaScript Function Apply Method Reuse With the apply() method, you can write a method that can be used on different objects. The JavaScript apply() Method The apply() method is similar to the call() method (previous chapter). In this example the fullName
www.w3schools.com