Loops and arrays II


#1

I dont know what the problem is here I think somewhere here
var names = ["Name1","Name2","Name3","Name4","Name5"];
for (var i = 0; i < cities.length; i++)

but here is my full code
var names = ["Name1","Name2","Name3","Name4","Name5"];
for (var i = 0; i < names.length; i++)
{
console.log("I know someone called " + names[i]);
}

Thanks in advance


#2

I got it working
Nevermind