The for loops. Looking for your name


The exercise I am stuck on is: 'Your second "for" loop' - Search Text For Your Name

The error message is: '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.'

text = 'Hi there i am Moises and i am here to tell \ you about something important, there is an epedemic called Moises and that is something important that ever you \ see Moises';

var myName = 'Moises';

var hits = [];

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


your first for loop will evaluate to false in its first iteration, so the loop never runs


Thanks, I dont know how i didnt see that