length

length

> Functions

Returns the length of the string string.

Since strings are encoded in UTF-16, some characters count as 2, such as emojis (for example 😊).

Parameters
Return
Examples

length("") // 0 length("a") // 1 length("Bonjour") // 7 length("😊") // 2