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


#1

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


#2

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