String properties

Provides a reference for the properties of strings.

There is a single, read-only string property.

Table 1. String property
Syntax Value
string.length

Number of characters in string. This is a read-only property.

Examples:

"abc".length –> 3

"".length –> 0