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!\'); };
Here's a good mnemonic. Apply uses Arrays and Always takes one or two Arguments. When you use Call you have to Count the number of arguments.