# pop()

Removes an item from a list and hands it back (the last one by default).

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

**pop()** — Removes an item from a list and hands it back (the last one by default).

```javascript
const tasks = ["Test", "Deploy"];
const lastTask = tasks.pop();
```

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/pop-javascript
