Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

length Property (String)

Returns the length of a string.

str.length

Arguments

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

Remarks

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.

Requirements

Version 1

See Also

length Property (Array) | length Property (Function)

Applies To: String Object

Show:
© 2015 Microsoft