Utilizor
Contact Us

String Length

Finding the length of a string.

String Length

The length property returns the length of a string.

let text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; let length = text.length;

Example

let text = "Hello";
let len = text.length; // 5