# push()

An Array method that adds values to the end and returns the new length.

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

**push()** — An Array method that adds values to the end and returns the new length.

```javascript
const tasks = ["Test"];
tasks.push("Deploy");
```

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/push
