splice
Add An Item To An Array Using JavaScript Splice()
· ☕ 2 min read · ✍️ Adesh
Find out how to add an item to an array using JavaScript Splice(). The Array.splice() method is an inbuilt method in JavaScript which is used to modify the contents of an array by removing the existing elements and/or by adding new elements.