In the lesson "Victory!", it says the following:
You've done it! Nice work.
Now, as we mentioned, this system isn't perfect. For instance, if the paragraph contains both "Eric" and "Eddie", we'll see this in our hits array:
But why would it say "Eddie"?
Surely the code would merely just say "Eddi" because in the code, it is searching for the first letter and then after printing the next 3 letters?
I've tested this with my code and the example code and I see no light. Please enlighten me