3. Your first "for" loop



In the error message box, it says "Oops, try again. There was a problem with your syntax." On the console, it says SyntaxError: Unexpected token <

I know that this means there is a problem with the < in the for loop, but I can not figure out why < would be the problem.

var text = "xng fkjngJadeojbfkdJadeuhahgJade";
var myName = "Jade";
var hits = [];

for (var i=0, i<text.length; i++){


You have a comma , after var i=0 instead of a semicolon ; .


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.