5. Your second "for" loop ---- please help?


my code:
/*jshint multistr:true */
var text = "Hi, my name is Cherese. \ Cherese, is my name. \ Is my name Cherese?";
var myName = "Cherese";
var hits = [];
for(var i = 0; i < text.lenght; i++)
if(text[i] === myName[0])
for(var j = i; j < (myName.length + i); j++)

error it's giving me: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.

Please help, i can not see where I went wrong :confused:


It's probably just this.


ha ha lol.. thanks so much, can't believe i missed that. lol