Iterating over an Array


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

for(i=0; i<languages.length; i++){
What is wrong in this code?




languages is the array, you need to log each element in the array. this is why you build the loop


So what should I do?


log each language to the console by using i as index to access items from the array


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