Second 'for' loop, stuck please help


/*jshint multistr:true */
var text = "James will be a software engineer with patience and dedication to this craft";
var myName="James"
var hits = []
for (var i = 0; i<text.length; i ++); { 
    if(text[i] === myName[0]) { for (var j = i; (j < myName.length + i); j++) { hits.push(text[j])

Says that my second for loop isn't pushing values to my hits array? I'm not sure how to go about doing this, can someone please help?


You have inadvertently added semicolon for (var i = 0; i<text.length; i ++);
I believe semicolon denotes closing of the loop and hence, values not being pushed..