I Am stuck here is my code


#1

var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"];
languages[2];
var element = array[2];
whats wrong
Oops, try again. Your code doesn't look quite right. See the error message for more details: ReferenceError: array is not defined


#2

Is this level 3/17 in Arrays and Objects in JS?


#3

It's 2/17. The instructions ask us to log the third element in the languages array.

console.log(languages[2]);

The OP is on the right track, just not logging, as asked.


#4

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


#5

Thanks for all your help everyone