Second loop error in Search Text for Name exercise


#1

I am working on the second loop for 2 hours now and I am not sure what I am doing wrong. My code is below and its looks correct to me. When I select save and submit a get the Parser Error. What is wrong with this?

var text = "My name is Josh. \ How are you doing today?"
var myName = "Josh";
var hits = [ ];
for (var i = 0; i < text.length; i ++);
if (text[i] === "J"){
console.log("Nice work");
for (var j = i; j < (myName.length + i); j ++){
hits.push(text [j]);
}
}
}

Thanks,
Josh


#2

Semicolon at the end should not be there