Description
The length property length of a string (in characters).
This property has the form:
string.constructor
Examples
The following example shows the basic use of this property.
<script>
var s = "Hello from JavaScript";
document.write(s.length);
</script>
This produces the following result:
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|