Search Text for Your Name


#1


#2

The long string of text that you're searching should contain at least one instance of your name.


#3

After posting this, I realized that. However, it did not fix the issue.


#4

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?


#5

Yes. This is tested by printing the character at that array index to console.


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.