Learn Create Your Own Split Screen

Next Page

Javascript strings are really powerful and have lots of built-in capabilities (called methods and properties).

The code in the sample below shows how you get the length of a string, using the length property.

It works the same as this Scratch block:

Try putting spaces at the beginning or end of the string (inside the quotes). Do they count in the length?