push() 會在陣列末尾加入一個或多個元素,並回傳新長度。
var arr = new Array("HTML", "CSS"); arr.push("JavaScript", "jQuery");
它會直接修改原陣列,常用於資料收集。