Loops and Arrays part 2. please help


#1

var names =["mike","tony","steve","billy","bob"];
for(var i = 0; i < 1; i++){
console.log("I know someone called "+ names);
}

This is the error that i am getting.

Oops, try again. Your code should have printed 'I know someone called mike', but didn't. Make sure to type the 'I know someone called ' part exactly right, and don't forget the space between that phrase and the name!

The weird thing is that this is what prints in the console.

I know someone called mike,tony,steve,billy,bob


#2

should be,

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

and,

    console.log("I know someone called " + names[i]);

#3

Thank you very much. Lots of time wasted on that one.