The long string of text that you're searching should contain at least one instance of your name.
After posting this, I realized that. However, it did not fix the issue.
Well that was step one, next take a look at what it is you're searching for. Is your comparison
text[i] === myName[i] giving you what you want?
Yes. This is tested by printing the character at that array index to console.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.