(1)JoinFunction: converts and concatenates all elements in the array into a string. Example:
Function JoinDemo () {var a, B; a = newArray (0, 1, 2, 3, 4); B =. join ("-"); // separator return (B); // return B = "0-1-2-3-4 "}
(2)LengthFunction: returns the length of the array. Example:
function LengthDemo() { var a, l; a = newArray(0,1,2,3,4); l = a.length; return(l); //l==5 }
(3)ReverseFunction: reverses the order of array elements. Example:
function ReverseDemo() { var a, l; a = new Array(0,1,2,3,4); l = a.reverse(); return(l); }
(4)SortFunction: sorts array elements. Example:
function SortDemo() { var a, l; a = newArray("X" ,"y" ,"d", "Z","v","m","r"); l = a.sort(); return(l); }
(5)ToStringFunction: converts an array to a string connected by commas.
(6)ValueOfFunction: Same as the toString function.
(7)ConcatFunction: connects other arrays to the end of the current array.
(8)ShiftFunction: Delete the first element in the array and return the value of the deleted element.
(9)PopFunction: Delete the last element.
(10)PushFunction: add one or more elements to the end and return the length of the added array.
(11)UnshiftFunction: adds one or more elements to the beginning.
(12)Slice (start, end)Function: truncates an array element. If start is a negative number, it starts from the end of the array.