Stuck at 2nd for loop


#1

Hi,

I'm stuck at this question and am not sure what is wrong.

var text = "Halo this is some random text made by Cole \
That guy's name is Cole";
var myName = "Cole";
var hits = [];

for(var i = 0; i > text.length; i++)
{
    if(text[i] === 'C')
    {
        for(var count = i; count < i+myName.length; count++)
        {
            hits.push(text[i]);
            console.log(hits);
        }
    }
}

#2

Nvm, found the problem, it already started with the first for loop. Instead of > it should've been <


#3

Here to keep it alive


#4