5/7 Your second for loop


#1

I am really confused and I need some help with my code. I don't know what is wrong or how to fix it.

/*jshint multistr:true */
var text = "Hi it is very nice to meet you. My name is Enjoli. Enjoli is a pretty tricky name for most people to say.";
var myName = "Enjoli";
var hits = [];
for (var i = 0; i < text.length; i += 1) {
if (text[i] === "E") {
for (j = i; j < (myName.length + i) j++); {
hits.push(text[j]);
}
}
}

I get an error that says: SyntaxError: Unexpected identifier 'j'. Expected a ';' after the for loop condition expression.

Please help


#2

Remove the invalid token, ;

for (var j = i; j < (myName.length + i) j++) {