String Length in Swift
Level 120 keystrokes
Prints the number of characters in "Swift" using the count property: 5.
Swift code
// count returns the number of Characters (not bytes): 51print("Swift".count)Output
5
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Swift code and how often they appear.
"× 2.× 1(× 1)× 1