Quote:
Originally Posted by Switch
Never knew the second param in substring() took off whatever the first param didn't include.
|
How substring works:
"testingfoobarbaz".substring(3, 5)
It starts at 3, so it excludes the red
testingfoobarbaz
Then it will extract the text between starting index 3 and the length from this index.
testingfoobarbaz
The text inbetween the colored text is what you end up with