(1) In the function body, the arguments array object can be used directly, and the elements of this array are all arguments actually passed in when this function is called
(2) In fact, when calling a function, the number of arguments passed in can be different from the declaration of the function, the passing of different types of parameters will result in the results do not meet the expected
(3) Because of the function of JS, the return value and the number of parameters and parameter types are very flexible, we should make sure that the incoming function expected parameters when calling
Example
<! doctype html public "-//w3c//dtd html 4.01 transitional//en" "HTTP// Www.w3.org/TR/html4/loose.dtd ">650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/86/A0/wKiom1fFsnTBUuFvAAFKyJN4FGE295.gif "title=" Arguments_demo.gif "alt=" Wkiom1ffsntbuufvaafkyjn4fge295.gif "/>
Arguments array objects in JavaScript