A Array object (Object/core) Example code: // (Post office web site)

A Array object (Object/core) Example code: See also: Array object Cross-references: ECMA 262 edition 3 section 11.1.4 O’Reilly JavaScript, The Definitive Guide ISBN 1-56592-392-8 page 46 Array object (Object/core) An object of the class “Array”. Availability: ECMAScript edition 2 JavaScript 1.1 JScript 3.0 Internet Explorer 4.0 Netscape 3.0 Netscape Enterprise Server 2.0 Opera 3.0 -myArray = Array -myArray = myVBArray.toArray() -myArray = new Array() -myArray = new Array(aLength) JavaScript syntax: -myArray = new Array(anItem1, anItem2, anItem3, …) aLength An optional initial length to set the array to. Argument list: anItemN A variable number of initial elements to insert into the array. Object properties: Object methods: constructor, index, input, length, prototype concat(), join(), pop(), push(), reverse(), shift(), slice(), sort(), splice(), toLocaleString(), toSource(), toString(), unshift(), valueOf() An array is basically an indexed collection of references to other objects or values.

Leave a Reply