Help pls, stuck


#1


It says my 2nd loop isnt pushing values to the Array, help pls!

var text = "bla bla bla bla bla bla bla bla bla bla bla jan bla bla \
bla bla nbla bla bla";

var myName = "jan";

var hits = [];

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


#2

take a look at your first for loop. you use > in the condition, i is zero at the start, so that condition will immediately be false. So the loop will never run


#3

ty bro
always count on you


#4