I didn’t understand how it uses in the return firstIndex + 1 and why use indexOf () again instead of running once only return.
I tested this code and result is 10 because if I have not misunderstood wrong that return at the number 10 position which is the search for the second string.
Sorry if I wrote my reasoning wrong but I’m not native English and I find it hard to express my logical reasoning.