numbers = [1, 2, 3] numbers.push(4) # [1, 2, 3, 4] numbers << 5 # [1, 2, 3, 4, 5] numbers.unshift(0) # [0, 1, 2, 3, 4, 5]