Loops and Arrays II - help please!


#1

When I put in this code:

var names ["A", "B", "C", "D", "E"];

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

it comes up as Syntax Error: Unexpected token [
Thanks in advance!


#2

The = is missing between var names and [


#3

Thank you, it works now!