Number 5 your second loop , dont know where i went wrong


#1

/*jshint multistr:true */

var text = "jack and jill went up the \ hill. jack attack and jack ninja";
var myName = "jack";
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

Hi after your first for loop statement you opened and closed it

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

You should remove }; and add one after the closing of your if statement at the end.


#3

yea i just noticed thanks man