# Set

*noun*

say it: **“SET”** **/sɛt/**

A JavaScript collection that keeps each value only once, ignoring duplicates.

## What is **Set** in JavaScript?

**Set** — A collection with no duplicates and no set order.

```javascript
const tags = new Set(["javascript", "web"]);
```

## In a sentence

- “A **Set** answers has("tea") quickly, however many items it holds.”
- “Putting the tags in a **Set** removed the second "vegan".”

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

Updated: November 19, 2026

## In other subjects

- [Set in Data Structures](https://www.ask-codey.com/glossary/set-data-structures)
- [Set in Java](https://www.ask-codey.com/glossary/set-java)
- [Set in Python](https://www.ask-codey.com/glossary/set)

Source: https://www.ask-codey.com/glossary/set-javascript
