Length of a String And Inserting New Lines

Learn how to get the length of a string and insert a new line in it.

The length of a string

Strings have a length property that is equal to the number of characters in the string. The shortest possible string is the empty string having a length of 0:

Get hands-on with 1400+ tech skills courses.