Push You can push certain items to an array making the last index the item you just added. var array = [1, 2, 3]; array.push(4); console.log(array);