Mega Code Archive

 
Categories / JavaScript Tutorial / Array
 

Properties and Methods Used by the Array Object

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