Last modified on October 8th, 2019
Algorithm of finding the 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.
- Underbody 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.
Pseudo Code of finding the String Length
var str = new String( “This is string that is to be measured” ); store in variable.
output show(“length of the string is:” + str.length);
var str = new String( "This is string that is to be measured" );
document.write("length of the string is:" + str.length);
- List of Public service commissions - August 31, 2020
- Comparison of fee structure of Pakistani Universities - June 1, 2020
- Past Guess Paper of Auditing - May 12, 2020