Description:
This property returns the number of characters in the string.Syntax:
string.length |
- A string
Return Value:
Returns the number of characters in the string.Example:
<html>
<head>
<title>JavaScript String length Property</title>
</head>
<body>
<script type="text/javascript">
var str = new String( "This is string" );
document.write("str.length is:" + str.length);
</script>
</body>
</html>
|
This will produce following result:
str.length is:14
+JavaScript +JavaScript Frameworks Links +Javascript Development +JavaScript's and More, Software and Marketing +JavascriptU +JavaScriptOn +Javascript Problems +JavaScriptOn +javaScript is a creek in West Virginia in the summe








No comments: