You can use length to get the string length in Javascript, as shown in the following example.
str="This is my length!";
value=str.length;
You can use length to get the string length in Javascript, as shown in the following example.
str="This is my length!";
value=str.length;
Did you like it?
Don't forget to vote for this (only if it was helpful)