shiftメソッド

構文
myArray = new Array("red", "green", "blue", "yellow");
 document.write("取り出し前", myArray);
 document.write("取り出し後", myArray.shift());
実行結果