Keeps saying Undefined. Loops and Arrays II


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.


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


Oh yeah hahah thanks.


Thanks this helped me