Iterating over an array


#1

I'm not 100% whats wrong with this code it's saying i have an unexpected ). There's not alot of code there and i don't see an extra ) anywhere please and thank you

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

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


#2

HI this line

for(i=0, i<languages.length, i++)

change all the , with ;

for (statement1; statement2; statement3) {

}

#3

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