How to use for loop to log all the elements within an array


#1



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

array and objects in array:lesson 4

what's wrong with this? could someone help me with it?


#2

Please paste in your code & lesson. Thanks