I am unclear on the instructions for "arrays of arrays" please help


#1

the lessons instructions are unclear to me could someone please help

#2

Please provide a link to the lesson.


#3

In an Array you have 1 or more element's with a certain Value.
The VALUE can be anything from:

•Number
•String
•Boolean
•Symbol
•Object  ◦Function
         ◦Array
         ◦Date
         ◦RegExp
         ◦Math
•Null
•Undefined

In an Array of Arrays
the element's have a Array Value
Thus
var arrayOne = [ ["arr2_elem0","arr2_elem1"] , ["arr3_elem0","arr3_elem1"] ]
=arrayOne= is an Array which has 2 element's
["arr2_elem0","arr2_elem1"] and ["arr3_elem0","arr3_elem1"]

To =access= an _Array-element you use the so-called =bracket-notation=
like

arrayOne[0]    --> an Array-Value ["arr2_elem0","arr2_elem1"]
arrayOne[0][0] --> a String-Value "arr2_elem0"

You are able to use a =double-FOR-loop= to get =access= to all the Value's

google search
== the Book ==
javascript array site:developer.mozilla.org
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
the for-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for

== discussions / opinions ==
javascript dimensional array site:stackoverflow.com

== guidance ==
www.crockford.com
http://javascript.crockford.com/survey.html
http://javascript.crockford.com/code.html <<< Javascript coding conventions


#4

ok here it is https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/1/2?curriculum_id=506324b3a7dffd00020bf661


#5

Looks like @leonhard.wettengmx.n gave a great description of an array and an array of other data types.

The question asks you to create an array with 3 rows and 3 columns, similar to the example where they show an array with 2 rows and 2 columns.

Does this help?


#6

Maybe this helps....
https://www.codecademy.com/en/forum_questions/545b8d9380ff33f39100306b


#7

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