Easy Tutorial
❮ Prop Style Columnfill Prop Style Color ❯

JavaScript length Property


Definition and Usage

The length property returns the length of a string (number of characters).

Syntax


Browser Support

All major browsers support the length property.


Example

Example

Return the number of characters in a string:

The output of the above example:


❮ Prop Style Columnfill Prop Style Color ❯