Second for loop error


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-XEDZA/0/5?curriculum_id=506324b3a7dffd00020bf661#

<In what way does your code behave incorrectly? Include ALL error messages.>

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.

```

/*jshint multistr:true */
var text = “e e e e e e Taylor e e e e e e e e Taylor e e e e e e e Taylor”
var myName = “Taylor”
var hits =
for ( var i = 0; i < text.length; i++ ); {
if (text[i] === myName[0]) {
for ( var j = i; j < i + myName.length; j++) {hits.push(text[j])
}
}
}

<do not remove the three backticks above>

#2

One word: “semicolon”

take off the semicolon off of the end of the for statement:

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


#3

Thank you so much!!!