Mega Code Archive

 
Categories / JavaScript Tutorial / Array
 

Methods Available in the Array Object

Method Description join()Concatenates all elements into one string reverse()Reverses the order of the elements in the array sort()Sorts elements in array concat()Concatenates an array on to an array slice()Returns a subsection of the array splice()Inserts and removes elements from an array push()Adds elements to the end of an array pop()Deletes the last element from an array unshift()Adds elements to the front of an array shift()Deletes elements from the front of an array toString()Converts elements to a string toSource()Converts elements to a string with square brackets