click below
click below
Normal Size Small Size show me how
JScript Array Obj
Properties ans methods for array object
Question | Answer |
---|---|
[Array Proprietes]Returns the function that created the Array object's prototype | constructor |
[Array Proprietes]Sets or returns the number of elements in an array | length |
[Array Proprietes]Allows you to add properties and methods to an Array object | prototype |
[Array Methods]Joins two or more arrays, and returns a copy of the joined arrays | concat() |
[Array Methods]Search the array for an element and returns it's position | indexOf() |
[Array Methods]Joins all elements of an array into a string | join() |
[Array Methods]Search the array for an element, starting at the end, and returns it's position | lastIndexOf() |
[Array Methods]Removes the last element of an array, and returns that element | pop() |
[Array Methods]Adds new elements to the end of an array, and returns the new length | push() |
[Array Methods]Reverses the order of the elements in an array | reverse() |
[Array Methods]Removes the first element of an array, and returns that element | shift() |
[Array Methods]Selects a part of an array, and returns the new array | slice() |
[Array Methods]Sorts the elements of an array | sort() |
[Array Methods]Adds/Removes elements from an array | splice() |
[Array Methods]Converts an array to a string, and returns the result | toString() |
[Array Methods]Adds new elements to the beginning of an array, and returns the new length | unshift() |
[Array Methods]Returns the primitive value of an array | valueOf() |