3.2 for loop


#1

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

I tried this, but i still getting errror in this ?


Exercise 3.2: For loop help
#2

Resolved the problem.
Actually it was not expecting for loop.
It want me to enter plain:
console.log(vacationSpots[0]);
console.log(vacationSpots[1]);
console.log(vacationSpots[2]);

:slight_smile:


#3