# String

*noun*

say it: **“STRING”** **/strɪŋ/**

A piece of text in quotes, such as "latte" or 'Hello, Sam'. JavaScript accepts single quotes, double quotes or backticks.

## What is **String** in JavaScript?

**String** — Text inside quotes, like \"hello\" or 'coffee'.

```javascript
const city = "Denver";
```

## In a sentence

- “The drink name "oat milk latte" is a **string**, so it goes in quotes.”

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

Updated: November 9, 2026

## In other subjects

- [string in C#](https://www.ask-codey.com/glossary/string-c-sharp)
- [String in Java](https://www.ask-codey.com/glossary/string-java)
- [String in Python](https://www.ask-codey.com/glossary/string)

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