Loops and arrays II


#1


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?

https://www.codecademy.com/en/courses/javascript-beginner-en-NhsaT/2/4?curriculum_id=506324b3a7dffd00020bf661#


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


#2

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


#3

That worked, thanks!


#4