Iterating over an array HELP


#1


https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/0/4?curriculum_id=506324b3a7dffd00020bf661#


it says "Oops, try again. It looks like you didn't log 'HTML' to the console!" and it logs out undefined
cant find what the problem is


Replace this line with your code. 
var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"];
for ( var i = 0; i < languages.length; i++ );
{
    console.log(languages[i]);
}


#2

for ( var i = 0; i < languages.length; i++ ); // remove ;

you shouldn't have a ; after for loop


#3

thank you so much
i didnt think about that


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.