String Methods Flashcards
(2 cards)
1
Q
How would I get the length of a string?
A
string.length
The length of an empty string is 0
2
Q
How would I get the character at a specific index in a string?
A
string.charAt(index)
Note, last