增删数组元素

添加元素:push, unshift 删除元素:pop, shift

思考题

var obj = {
  1: 'a',
  2: 'b',
  length: 2,
  push: Array.prototype.push
}

console.log(obj.push('c'))
console.log(obj)

splice