JavaScript Tutorial 9 – Function Arguments Object (Argument Array)




In this JavaScript Tutorial I will go over Arguments Object of functions also called Argument Array. Arguments is a local variable within all functions. This gives access to all the functions passed parameters or arguments.

Like an array, arguments object can access with index for each argument. Its index starts at 0. Although it looks like an array. It is not an array. It has the length property, but unlike an array, it does not have other array functions like pop and push.

Original source