# includes()

A method that reports whether an array contains a value or a string contains text.

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

**includes()** — A method that reports whether an array contains a value or a string contains text.

```javascript
const tags = ["javascript", "web"];
const hasJavaScript = tags.includes("javascript");
```

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