Loops and arrays II


What even is the problem here?
The console prints: "I know someone called undefined"
The error is: "Oops, try again. Your code should have printed 'I know someone called Lynn', 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!"
I copy-pasted the string from the page so I didn't make any grammatical errors and can't see why the array would be undefined. Help?


var names = ["Lynn", "Mandi", "Dallin", "Gabe", "Logan"];
for (var i = 0; i < names.length; i++); {
console.log("I know someone called " + names[i]);


you have a unnecessary semi-colon after i++)


That worked, thanks!