Arrays and Objects not logging to console


#1


https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/0/2?curriculum_id=506324b3a7dffd00020bf661#


I am logging the third element but it won't let me past.

Oops, try again.
Make sure you log the third element of the languages array to the console.


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


#2

you dont need { }

and remove =

console.log(languages[2]);

#3

This:
console.log(languages[2]);

Returns:
TypeError: console.log is not a function


#4

copy the code then refresh/reload your browser and paste it


#5

Thanks, that worked.


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.