Bracket Notation in accessing Multi-Dimensional Arrays With Indexes

Tell us what’s happening:

I figured out how to read the arrays. So, no problems there.

It stills says “You should be using bracket notation to read the correct value from myArray.” I checked FCC guide for Access Multi-Dimensional Arrays With Indexes.

What am I missing?

Your code so far

// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Only change code below this line.
var myData = myArray[2][1]; // equals 8

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15.

Link to the challenge:

take the // equals 8 comment above var myData there’s a glitch with the tester and it doesn’t like the comment being on the same line, nothing in particular wrong with your code


The feeling is mutual. I’m not a fan of the glitch either :slight_smile:

Thanks for the help @Dereje1! I thought I was going insane. I’m glad to see it’s just a glitch.

1 Like

FYI - A pull request (PR) has been created and should be merged soon. Hopefully, the next production deployment from the master branch of the repo will include the PR’s fix.

1 Like