JavaScript Array Object
Array Object
The Array object is used to store multiple values in a single variable.
For a tutorial about Arrays, read our JavaScript Array Object tutorial.
Array Object Properties
| Property |
Description |
| constructor |
Returns the function that created the Array object's prototype |
| length |
Sets or returns the number of elements in an array |
| prototype |
Allows you to add properties and methods to an object |
Array Object Methods
| Method |
Description |
| concat() |
Joins two or more arrays, and returns a copy of the joined arrays |
| join() |
Joins all elements of an array into a string |
| pop() |
Removes the last element of an array, and returns that element |
| push() |
Adds new elements to the end of an array, and returns the new length |
| reverse() |
Reverses the order of the elements in an array |
| shift() |
Removes the first element of an array, and returns that element |
| slice() |
Selects a part of an array, and returns the new array |
| sort() |
Sorts the elements of an array |
| splice() |
Adds/Removes elements from an array |
| toString() |
Converts an array to a string, and returns the result |
| unshift() |
Adds new elements to the beginning of an array, and returns the new length |
| valueOf() |
Returns the primitive value of an array |

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- 32-bit and 64-bit versions
- And much more!
Download a free trial today!
|
|
|
|