12. Loops and arrays II - syntax error


#1

Hello everyone, I don't know what's wrong in my code.. Can you help me, please ?

var names ["Kim", "Kevin", "Kandi", "Kari", "Keith"];
for (var i = 0; i < names.length; i ++) {
console.log("I know someone called " + names[i]);
}


#2

You are missing an equals sign = on this line.


#3

Oh :slight_smile: Thank you, really :slight_smile: It works


#4

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