# String Length

The number of UTF-16 code units in a String.

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

**String Length** — The number of UTF-16 code units in a String.

```javascript
const city = "Denver";
const characterCount = city.length;
const firstCharacter = city[0];
```

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/apprentice)

Updated: September 27, 2026

## In other subjects

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

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