spliceメソッド

構文
myArray = new Array("red", "green", "blue", "yellow");
document.write("置換え前の配列", myArray);
  myArray.splice(1,3,"purple", "olive", "orange");
 document.write("置換え後の配列", myArray);

実行結果