Javascript function internals: arguments and this
27 11 / 2011
Inside a function exist 2 special objects: arguments and this. The arguments object, is an arraylike object that contains all of the arguments that were passed into the function. This has also has a property named callee, which is a pointer to the function that owns the arguments object. Consider the following factorial function: function factorial(num){ if (num <...
(Read More)