My code
/*jshint multistr:true */
var text =“I just bought a couple more online classes. So I ll prob work on those \ We all be learning”;

var myName =“Timothy”;
var hits =;
for(var i = 0; i < text.length; i++){
for(var j = i; j <(myName.length);j++) {hits.push(text[j]);

Oops, try again. Careful: your second ‘for’ loop should stop when it reaches its current point in the string + myName.length.


the condition in your second for loop should bej < (myName.length + i)

when your if condition is true, i will hold the index of the first letter of your name, this value you assign to j. so between i and i + myName.length will contain your name


Thanks For the willing ness to help


Did you resolve the issue?


Yes I did thank you.