So, why doesnt this work


#1

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

#2

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

try this code


#3

Either there went something wrong while copy and pasting this or you should definitely review how for loops work.