$string.length()
Specifies the number of characters in the string string.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| string | String | String whose length is to be calculated. | yes |
Type: Number
The number of characters in string.
length("Hello world!")
Output: 12