Array Object
-
About the Array Object
The Array object has been used previously in the manual file. There are two types of arrays – typed and untyped (go to About Arrays for more informati...
-
Combining Arrays
arrayName.concat({item1{, item2{, . . . {, itemN}}}}) arrayName.concat({item1{, item2{, . . . {, itemN}}}})concat returns a new array consisting...
-
Converting Arrays to Strings
array.join(separator) array.join(separator)join returns a string value consisting of all the elements of an array concatenated and separated by...
-
Removing and Adding Elements
array.pop( ) array.pop( )pop removes the last element from an array and returns it. If the array is empty, undefined is returned. array.pu...
-
Changing the Order of the Elements
array.reverse() array.reverse() reverse returns an Array object with the elements reversed. The method reverses the elements of the Array object...
-
slice and splice
array.slice(start, {end}) array.slice(start, {end})slice returns a section of an array. start is the index to the beginning of the specified por...