length()

Deprecated in 5.0.

Replaced with method length() of the string instance.

length(string): int

Returns the length of string.

Table 1. Parameters

string

String

The string to determine its length.

Return

Length of the string passed to the function.

println(length("abcd")); // Will print "4"