I\'m trying to efficiently write a statement that pushes to position 1 of an array, and pushes whatever is in that position, or after it back a spot.
array =
To push any item at specific index in array use following syntax
// The original array var array = ["one", "two", "four"]; // splice(position, numberOfItemsToRemove, item) array.splice(2, 0, "three"); console.log(array); // ["one", "two", "three", "four"]