JavaScript String Method : length

The length method return the length of the JavaScript strings.

Syntax :
  string.length
Example :
<html>
<body>
  <script>
    var mystr = "This is test String.";
    document.write(mystr, "<br/>");
    document.write("The length of the String is : ", mystr.length);
  </script> 
</body>
</html>
Output :



Next Topic :