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.

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

Level: Apprentice · More JavaScript terms at this level

Updated

In other subjects