Second for loop


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.

Replace this line with your code. 
var text="I love pizza";
var myName="Bob Smith";
var hits=[];
for(var i=0;i<text.length; i++){
     for(var j=i;j<i+myName.length; j++){


Change your

var text="Bob Smith, I love pizza; Bob Smith does not";

add a console.log()

console.log( hits );


Thank you did the previous exercise specify that I needed to text that related to myName. I don't believe it did. Oversight perhaps?


My bad. It did. Oversight on my part...