push 末端加入一個元素

push 在陣列的末端加入一個以上的元素,並返回新的陣列長度。

var a = [1, 2];

a.push(3);

print(a); // 1,2,3