...
indexOf("Space1, Space2 and Space3", "e")
Returns 5, which is the first occurrence of "e". It does not return subsequent occurrences at positions 13 and 24.
...
...
indexOf("Space1, Space2 and Space3", "e")
Returns 5, which is the first occurrence of "e". It does not return subsequent occurrences at positions 13 and 24.
...