Please help me don't know what's wrong


#1

Here is my code:
/*jshint multistr:true */
var text="Some names Sam some names Sam some names Sam"
var myName="Sam"
var hits=[]
for (var i=0; i >text.length; i++) {
if(text[i] === "S"){
for(var j = i; j < (i + myName.length); j++){
hits.push(text[j]);
}
}
}
it tells me: 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.


#2

should be,

    i < text.length;

#3

Thank you very much!