Get the String Length in Javascript

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;

Advertisement

Did you like it?

No comments yet.

Leave a Comment