Your second for loop! help!


#1

this is the code i have:

for (var i = 0; i < text.length; i++); {
if (text[i] === "O") {
for(var j = i; j < i + myName.length; j++) {
hits.push(text[j]);
}
}
}
and it is still giving me this. i am going crazy trying to figure it out.
"Oops, try again. It looks like your second 'for' loop isn't pushing values to the hits array. Make sure it's working properly and that myName's text appears somewhere in the text variable."


#2

Hi this part remove the ; after the first for loop

for (var i = 0; i < text.length; i++);  <== this one

#3

just one word. "wow" thank you soo much i was killing myself here. thank you