Am i wrong or does this not make sense?


In regards to the exercise "Search Text for Your Name", when the exercise is complete it gives an example as the following:

"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 as from what i read during the exercise, it should only add the amount of characters that is equal to your name, so shouldn't that example result in:


instead of


if myName is set to "Eric"?


It's a tiny error in the lesson text. You have the right idea, so just ignore it.


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