Check out example codes for "Get the length of a String swift". It will help you in understanding the concepts better.

Code Example 1

var test1: String = "Scott"
test1.count

Learn ReactJs, React Native from akashmittal.com