Your second "for" loop HELP


#1

I can't seem to figure this out.... Can someone help me? This is the code I'm using

var text = "My name totaly isn't Justin or anything.... Totaly not JUSTIN...."
var myName = "Justin"
var hits = []
for(var i = 0; i < text.length; i+= 1) {
   if (text[i] === 'J'){
        for (var j = i; j < myName.length + i ; j +=1) {
            hits.push[ text[j] ];
        }
   }
}
console.log(hits);

#2

Your error is in hits.push[text[j]];
Don't mix up brackets and parentheses.


#3

hits.push[ text[j] ];
should really be:
hits.push(text[j]);