Sequential for loop

Hello there.

I have a question regarding a piece of code below.

var myStringArray = ["Hello","World"];
var arrayLength = myStringArray.length;
for (var i = 0; i < arrayLength; i++) {
    console.log(myStringArray[i]);
    //Do something
}

It is a for loop which should loop through an array.
My question is regarding the [i] placed with the variable in the console.log. What is the meaning of that [i]? Is [i] now arrayLength?

This is property accessor, you can access property of object in JavaScript in two ways:

// dot notation
myStringArray.length

// bracket notation
myStringArray[i]

More here:

Thanks @snigo I need to do my homework better.