Am i wrong or does this not make sense?


#1

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:"

['E','r','i','c','E','d','d','i','e'];

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:

['E','r','i','c','E','d','d','i'];

instead of

['E','r','i','c','E','d','d','i','e'];

if myName is set to "Eric"?


#2

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


#3

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