I am confused about using apply or call method correctly. I know that apply is passing an array to the function and call is passing strings to a function. For example the code b
this is the scope of the Apply/Call function. An example is:
this
Apply/Call
function test() { alert(this.a); } (function () { this.a = "test"; test();//test var self = this; (function () { this.a = "Foo"; test();//Foo test.apply(self, []);//test }()); }());