JavaScript Arrays

The splice() Method

The splice() method adds new elements to an array: