javascript String length

lengthNN 2 IE 3 ECMA 1  

Read-only  

Provides a count of the number of characters in the string. String values dynamically change their lengths if new values are assigned to them or if other strings are concatenated.

 
Example
 
for (var i = 0; i < myString.length; i++) {
    ...
}
 
Value

Integer.


1770,Nickname,Homepage or email,Comments here,Add comment