How to Use JavaScript Array Splice? Methods of splice() Array in JavaScript explained - change the contents of an array by adding new elements and removing or replacing existing elements.