Error in step 7 instructions


#1

I found a minor mistake in the instructions for Step 7. Victory! It states 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'];

However, I tested this, and the code only returns...

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

...when both "Eric" and "Eddie" appear in variable 'text', and variable 'myName' is "Eric", because 'myName' is only four characters long.


#2

Yes, the instructions are wrong here :slight_smile:


#3

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