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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -