Your second for loop! help!


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++) {
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.”


Hi this part remove the ; after the first for loop

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


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