JAVASCRIPT: does Arrays constructor automatically have a variable called arguments? -
So, in the following code, I am wondering why the "logic" in the applicable method automatically in the Argument Array constructor.
function special () {var value = new array (); Values.push.apply (value, argument); // Do the logic automatically descend from the manufacturer? Values.toPipedString = function () {return.join ("|"); }; Return value; } Var color = new special arrow ("red", "blue", "green"); console.log (colors.toPipedString ()); // print: "red | blue | green"
about a particular Is not about constructor or array
Within each function, you can access this way.
Comments
Post a Comment