📜  javascript代码示例中的push pop

📅  最后修改于: 2022-03-11 15:02:09.440000             🧑  作者: Mango

代码示例2
// push append the element at the end of the array 

array = [1,2,3] 
array.push(4)     // [1,2,3,4]

// pop will remove the element from the end of the array. 
array.pop()        // [1,2,3]