Its Not Working...the second for loop...Please Help


var text = "Hey, how are you \
doing? My name is Sooraj.";
var myName="Sooraj";
var hits=[];
for(var i=0;i{
for(j=i;j hits.push(text[j]);


You might want to take a look at a few lessons in introduction to for loop track, how to put it nicely? Both your loops are a bit messy