Access by Offset - Printing correct object, but not able to move forward


#1

Console is printing Javascript...but I keep getting a message saying it's incorrect..

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

for (var i = 0; i < languages.length - 2; i++) {
    languages[i];
}

Oops, try again. Looks like your code didn't log the third element of the languages array. Remember that array indexes start from 0.

Figured it out...


#2

what was the resolution?


#3

I was making it much more difficult.

var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"];
      console.log(languages[2]);