12/13 syntax error


#1

var names = ["Pranav", "Ayesha", "Farheen", "Nikhita", "Hebatalla"];
for (var i = 0, i < names.length, i+=1) {
console.log("I know someone called" + " " + names[i]);
}

^that's my code but it says Unexpected Syntax Error, Syntaxerror: unexpected token <


#2

you use comma's (,) in the for loop, where you should use semi-colons (;)


#3

Thank you so much! :smile: