5. Your second "for" loop


#1

So this is what I have and I don't know what I'm doing wrong. Some help would be highly appreciated.

var text = "Hey guys! I'm Þórlindur";
var myName = ("Þórlindur");
var hits = [];

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

ERROR MESSAGES:
Oops, try again. There was a problem with your syntax.
And
SyntaxError: Unexpected token


#2

No parenthesis needed.

if (text[i] === "C") {

You should check for "Þ" not "C".