# splice()

An Array method that removes, replaces, or inserts items by changing the original array.

## What does **splice()** do in JavaScript?

**splice()** — An Array method that removes, replaces, or inserts items by changing the original array.

```javascript
const tasks = ["Plan", "Deploy"];
tasks.splice(1, 0, "Test");
```

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/splice
