This forum is now read-only. Please use our new forums at

Animate Your Name Forum

View Course

15 points
Submitted by
about 4 years ago

What is the purpose of knowing the length of a string? Why is that important?

In one of the beginning lessons, it mentions: To discover the length of a string, write the string within quotes. Then write a period (full stop) and the word length like this:


I just don't get the practical application of it.

0 votes


One thing you might like to do is enforce a limit on users at your site - you can force them to have passwords of a specified length - but only if you know how to find the length.

3698 points
Submitted by
about 4 years ago