Not pushing values into arrays? where did I go wrong?


#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.>

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

```

/*jshint multistr:true */
var text = ‘Jeremiah, ■■■■■, ■■■■■, Jeremiah’;
var myName = ‘Jeremiah’;
var hits = ;

for (var i = 0; i >= text.length; i++){
if (text[i] === “j”){
for (var j = i; j < i + myName.length; j++){
hits.push(text[j]);
}
}
}

<do not remove the three backticks above>

#2

@dropkickfishmuffin,

Try it by using the IF condition

(text[i] === "J")