Bug in 11.2 Access by Offset


#1

Hi Codeacademy

I think there’s a bug on lesson 11.2 Access by Offset:

The following code renders an error message even though it seems correct:
(Instructions are to choose the THIRD object in the array)

(The error message says:
Oops, try again. Make sure you log the third element of the languages array to the console.)


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

languages[2];


I would love to continue the course but can’t - please help!


#2

Nevermind me - I see what’s wrong :man_facepalming: - sorry about this…


#3

the error message:

Make sure you log the third element of the languages array to the console

is pretty informative, you access the third item in the array, but you don’t log it to console, how do we log things to the console?


#4

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