Feb
5th
While working with strings, most probably we will need to find a length of string, count of charachers and etc. In JavaScript we can make use of the string related function as the [variable].length
So, here we go!! I decided to share some really basic source code. Here’s the example shows in an alert dialog box with the length of the string “My Name is David”
var mystring = “My Name is David”;
alert( mystring.length );
alert( mystring.length );