It looks like you didn't log 'HTML' to the console!


#1

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

I dont know what to do


#2

What lesson number is this?


#3

Iterating over an array


#4

You accidently typed in More on Controw Flow in JS... I will come with anwser soon!


#5

Ok i suspected this.. Your suppose to make it less than or equal to.. Not only less than here:

So like this...

for (var i = 0; i <= languages.length; i++) {

#6

It is not working i tried that but it failed and said the same thing


#7

How come i didt notice! Your suppose to print out the actual array. It wont understand i , its just a number.

So in your for loop console.log like this:

 console.log(languages[i]);