I am Hack Sparrow
Captain of the Internets.

JavaScript – Convert arguments to Array

All JavaScript functions have a local variable called arguments, which is a list of arguments that were passed to the executing function. The first argument can be accessed as arguments[0], the second one as arguments[1] etc. To find out the numbers of arguments you can do arguments.length. You can see arguments is a lot like an array. I say it is a lot like a ...