Arrays!


#1


It keeps saying "Looks like your code didn't log the third element of the languages array. Remember that array indexes start from 0" I looked and all the words appear I am not sure what I did wrong.


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

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


#2

The semi-colon at the end of this statement is the problem.


#3

I think you did not define i, like for (var i=0)


#4

If you run this loop, it will log every element of the array to the console. Since the instructions want the 3rd element logged, you can try something like:

console.log(array[x]);


#5

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