4 - Iterating over an array!


#1


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

Oops, try again. It looks like you didn't log 'HTML' to the console!
Been battling this one for ages, I can't work out what's going wrong :frowning: please help :smiley:

var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"];

for (var i = 0; i < languages.length ; i++); {
    console.log(languages[i]);
}


#2

you have a semi-colon after i++) which interrupts the loop, remove the semi-colon.


#3

Thanks so much!! Works fine :smiley:


#4