length Property

Top  Previous  Next

Returns the length of a string.

Syntax

String.length(string)

Arguments

stringA string.

Return Value

A number representing the length of a given string.

Examples

var String="Hello developers, welcome to CellScript!";

var n=String.length;

Net.write(n);                                              // 40