Example : 1
var totn_string = 'WwwPakainfoDotCom'; console.log(totn_string.length);
Example : 2
<script> // Taking some strings var x = 'pakainfodotcom'; var y = 'paka'; var z = ''; // Returning the length of the string. document.write(x.length + "<br>"); document.write(y.length + "<br>"); document.write(z.length); </script>
Example : 3
<script> // Taking some strings. var x = '2341312134'; var y = '@#$%^&**((*&^'; // Variable z contains two spaces var z = ' '; // Returning the length of the string. document.write(x.length + "<br>"); document.write(y.length + "<br>"); document.write(z.length); </script>
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.