# split()

Breaks a string into a list of pieces.

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

**split()** — Breaks a string into a list of pieces.

```javascript
const words = "tea coffee".split(" ");
const label = words.join(" & ");
```

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