I can't find my mistake


var text = "Jack be nimble, Jack be quick, Jack jumped over the candle stick!"
var myName = "Jack";
var hits = [];
for (var i = 0; i < text.length + 1; i++)
{if (text[i] === "J")
{for (var j = i; j < (myName.length + i); j++)}

I can't find my mistake. Can anyone see it? I get this error: SyntaxError: Unexpected token }


On line 6 you closed the loop you just created:

You should instead move that Curly Bracket down to after the last line.


That was it. Problem solved. THANK YOU!


Welcome, and good luck further! Post on the forum if you have any trouble and I'll help if I see it!