The second loop


#1

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


#2

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

hits.push(text[j]);

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