Access MultiDimensional Arrays With Indexes - help

Access MultiDimensional Arrays With Indexes - help
0

#1

Tell us what’s happening:

It is really hard and I don’t understand this. Please help me!!!

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[0][0];

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36.

Link to the challenge:


#2

See if you can first answer a question about a one-dimension array.

If you had the following one-dimensional array declared:

var myArray = [22, 50, 8, 3, 100];

and I asked you to use bracket notation to select an element from myArray such that myData is equal to 8, how would you complete the following statement?

var myData = ???

#3

I dont know how to do any of it


#4

Then you need to go back through the following challenges where they introduce and manipulate arrays.

Store Multiple Values in one Variable using JavaScript Arrays

Nest one Array within Another Array

Access Array Data with Indexes

Modify Array Data With Indexes


#5

did you solved it?
I am on the same point


#6

If you need some help, create a new topic, post your code, and tell us what you are having trouble with.

To enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.