Get the length of a String

How do you get the length of a String? For example, I have a variable defined like:

var test1: String = "Scott"

However, I can’t seem to find a length method on the string.

4Best Answer
41

Leave a Comment