pop() 會刪除並回傳陣列最後一個元素,同時讓長度減 1。
var arr = new Array("A", "B", "C"); arr.pop(); // C
若陣列已空,則回傳 undefined。