inserting data in array in js code example
Example: javascript Inserting values in between an array
myArray.splice(index, itemsToDelete, item1ToAdd, item2ToAdd, ...)
myArray.splice(index, itemsToDelete, item1ToAdd, item2ToAdd, ...)