Transposes the elements of an array: the first array element becomes the last and the last becomes the first.
Array
reverse()
The reverse method transposes the elements of the calling array object.
The following example creates an array myArray, containing three elements, then reverses the array.
Array: join, Array: sort