The second loop


People, already tried several pass this exercise but I can not, someone could explain me step by step what is missing in my code


Hi you didn't close the ) of your second for loop

for (var =j ...; j++)

then you should push to hits text[j] like that


then it's missing also some closing } your code should have that structture

for (statement1; statement2; statement) {
    if (condtion) {
       for (statement1; statement2; statement3) {


Hope that could help you