myArray.reverse() in ECMAScript 262

Reverses the order of the elements in the array, and returns the array.

Return Type
Array

Description

The original array is modified, and also returned; a new array is not created.
var foo = [0,1,2,3,4];
foo[9]=9;
foo.reverse();
foo.toString()=="9,NULL,NULL,NULL,NULL,4,3,2,1,0";