Javascript string length Program Algorithm Flowchart
Javascript string length Program, Algorithm, and Flowchart are covered in this article.
Algorithm of Javascript string length
- Open HTML, head and body tags.
- Under head tag, open title tag and set the title of the program and close title tag.
- Under the body tag open script tag.
- In the script, the tag makes the object of Str.leanth() and write a string that is to be measured.
- Show output on-screen close script tag.
- Close all other open tags.
Flowchart of Javascript string length

Program of Javascript string length
<html> <head> <title>JavaScript String length Property</title> </head> <body> <script> var str = new String( "This is string that is to be measured" ); document.write("The lenth of the string is" + str.length); </script> </body> </html>
Output
The length of the string is 37.
Topic Covered
Javascript string length Program Algorithm Flowchart.