JS 11. Arrays and Objects: 4.Iterating over an array


#1

What am I doing wrong?

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

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

:confused:


#2

There are three parameters in a for statement:

* initial value of the iterator variable
* condition under which the loop will be allowed to continue iteration
* step or increment expression

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

}