reverseメソッド

構文
myArray = new Array("red", "green", "blue", "yellow");
 document.write("元の配列", myArray);
 document.write("逆順の場合", myArray.reverse());
実行結果