String Methods Flashcards
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
How would I get the length of a string?
string.length
The length of an empty string is 0
How would I get the character at a specific index in a string?
string.charAt(index)
Note, last