Please enable JavaScript.
Coggle requires JavaScript to display documents.
Methods - Coggle Diagram
Methods
The character at position 7
str.charAt(7)
output
7
The substring from 9 to 16
str.substring(9, 16)
output
nothing
The index of the first 'w'
str.indexOf('w')
output
18
The string in uppercase:
str.toUpperCase()
output
YOU KNOW NOTHING,JON SNOW
Length of this string:
str.length()
output
26
counting begins from zero
String str = "You know nothing, Jon Snow"