Name
length — NN 2 IE J1 ECMA 1
Synopsis
Read-only
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.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.