JavaScript Array Methods
splice()
The splice() method adds new elements to an array.
Try it