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?