length
Gives the length of a value: the number of characters of text, the number of items of a list or a set, the number of digits of a number; null has length 0.
Runs on: either side: the compiler places the statement that calls it where the values it uses live.
Format:
length(value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | mixed | the text, list, set or number |
Returned Value:
| Type | Description |
|---|---|
| number | the length |
Examples
if (length(password) < 8) { alert("Eight characters at least") }