Keeps saying Undefined. Loops and Arrays II


#1

I can't see what I'm doing wrong here.

var names = ['John', 'Jesse', 'Dodger', 'Crendor', 'Joe'];
for (var i=0; i < names.length; i++);{
console.log("I know someone called " + names[i]);
}

It just keeps showing Undefined everytime I run the code.


#2

Hi try to remove the ";" after the for loops .


#3

Oh yeah hahah thanks.


#4

Thanks this helped me