Access MultiDimensional Arrays With Indexes
Fix FreeCodeCamp/FreeCodeCamp#5492
This commit is contained in:
committed by
SaintPeter
parent
4b8c077e48
commit
046243b1e9
@ -1541,7 +1541,7 @@
|
|||||||
"id": "56592a60ddddeae28f7aa8e1",
|
"id": "56592a60ddddeae28f7aa8e1",
|
||||||
"title": "Access Multi-Dimensional Arrays With Indexes",
|
"title": "Access Multi-Dimensional Arrays With Indexes",
|
||||||
"description": [
|
"description": [
|
||||||
"One way to think of a <dfn>multi-dimensional</dfn> array, is as an <em>array of arrays</em>. When you use brackets to access your array, the first set of bracket refers to the entries in outer-most array, and each subsequent level of brackets refers to the next level of entry in.",
|
"One way to think of a <dfn>multi-dimensional</dfn> array, is as an <em>array of arrays</em>. When you use brackets to access your array, the first set of bracket refers to the entries in the outer-most array, and each subsequent level of brackets refers to the next level of entry inside.",
|
||||||
"<strong>Example</strong>",
|
"<strong>Example</strong>",
|
||||||
"<blockquote>var arr = [<br> [1,2,3],<br> [4,5,6],<br> [7,8,9],<br> [[10,11,12], 13, 14]<br>];<br><code>arr[0]; // equals [1,2,3]</code><br><code>arr[1][2]; // equals 6</code><br><code>arr[3][0][1]; // equals 11</code></blockquote>",
|
"<blockquote>var arr = [<br> [1,2,3],<br> [4,5,6],<br> [7,8,9],<br> [[10,11,12], 13, 14]<br>];<br><code>arr[0]; // equals [1,2,3]</code><br><code>arr[1][2]; // equals 6</code><br><code>arr[3][0][1]; // equals 11</code></blockquote>",
|
||||||
"<h4>Instructions</h4>",
|
"<h4>Instructions</h4>",
|
||||||
|
Reference in New Issue
Block a user