Error in step 7 instructions


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:


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


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


Yes, the instructions are wrong here :slight_smile:


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