Javascript Function-Pointer Assignment
In other examples, nothing was passed by value; everything was passed by reference. bar and foo are BOTH pointers All vars/handles to NON primitive objects in javascript are pointers; pointers ARE native to javascript, they are the default. var bar = function () { alert(“A”); } //bar is a pointer to function1 var foo = … Read more