5 - Your second "for" loop


#1



Help me
I've been searching the error for about two hours and didn't found it.
Can someone help me?


/*jshint multistr:true */
var text = "Hello, my name is Matheus.";
var myName = "Matheus"
var hits = [];
for (var i =0; i < text.length; i++) {
if (text[i]==='Matheus') {
    for(var j = i; j < (myName.length + i); j++) {
        hits.push(text[j]);
    }
}
};


#2

HI this line

if (text[i]==='Matheus')

you should put text[i] equal to the first letter of your name


#3

You've saved my life hahah
Thanks bro.