# push()

*noun*

say it: **“PUSH”** **/pʊʃ/**

The JavaScript array method that adds items to the end.

## 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");
```

## In a sentence

- “cart.**push**("Chai") added Chai to the end of the cart.”

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=2)

Updated: November 9, 2026

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