why specify args as an array code example
Example 1: transform argumentums object into an array
var argArray = Array.prototype.slice.call(arguments);
Example 2: parameters in javascript
function myFunction(x, y) {
if (y === undefined) {
y = 2;
}
}