There is one method "length" to get length of string.
Syntax:
string.length
Example:
Syntax:
string.length
Example:
<script type="text/javascript">
var txt="Computer";
alert(txt.length);
</script>
var txt="Computer";
alert(txt.length);
</script>
No comments:
Post a Comment