Second for loop isn't pushing values to hits array


I have entered everything in the same way as the example code and what I've seen work based on other people's topics, but I can't move past this section. Can anyone help me figure out why it won't push values to the hits array?


Hey avischerr,

It seems your checking the wrong variable length in your first for loop line 8.

Check against text.length instead.