Access by offset, help please!


#1

I did everything in it correctly but i am still getting an error!
Here is my code:
var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"];
languages[2]


#2

Hey @bonzuke! The exercise tells you to log it to the console. So the only change in your code is that instead of your last line:

Do this:
console.log(languages[2])

Hope it helped! If it didnt pls reply saying so!


#3

wow it worked thanks


#4


seems still wrong dude: :confounded:


#5

remove the console.log in yours, maybe that will work...


#6

because of your semicolon


#7

this is the easy way to do it

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


#8

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