What is the difference between using call and apply to invoke a function?
call
apply
var func = function() { alert(\'hello!\'); }; >
var func = function() { alert(\'hello!\'); };
The difference is that call() takes the function arguments separately, and apply() takes the function arguments in an array.
call()
apply()