You second "for" loop help


#1

Not sure why this code is wrong:

/*jshint multistr:true */
var text = "Blah blah blah blah blah blah Josh blah blah \
blah blah blah blah Josh blah blah blah blah";

var myName = "Josh";
var hits = []

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


#2

Should be less than

for (i = 0; i < text.length; i++){