Creates and returns a new array.
Array
An array with integer indexing and a length property.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Number | read/write | The length of the array |
Methods
Returns a new array created by concatenating the given values to the end of the original array.
Joins all elements of the array into a string; optionally, each element is separated by delimiter.
Removes the last element from the array, decreases the length by 1, and returns the value of the element.
Places one or more values onto the end of the array and increases length by n.
Reverses the order of the elements in the array.
Removes the first element from the array, decreases the length by 1, and returns the value of the element.
Creates a new array, which contains a subset of the original array's elements.
Sorts the elements of the array in place, using the given function to compare to elements.
Removes num elements from the array beginning with index, start.
Converts an array to a string and returns the string (localized).
Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.
Converts an array to a string and returns the string.
Adds one or more elements to the beginning of the array.
Parameter of 1
Method parameters that accept a Array.
Return 10
Methods that return a Array.