Export (0) Print
Expand All

length Property (String)

Returns the length of a string.

str.length

str

Required. A string literal or the name of a String object.

The length property contains an integer that indicates the number of characters in the String object. The last character in the String object has an index of length - 1.

Community Additions

ADD
Show:
© 2014 Microsoft