Hey guys! Can you plz figure out the problem with my code..Its as follows:
text="This is Aman. I love coding. Aman loves to code.";
hits = ;
for(var i=0;i< text.length ;i++)
for (var j = i; j < i + myName.length; j++)
Error: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.