splice() method changes the content of an array, adding new elements while removing old elements. Syntax array.splice(index, howMany, [element1][, ..., elementN]); Parameter Details index − Index……