Skip to content

Commit f684d39

Browse files
authored
change example element of multidimensional array
When teaching this subject I found that an example where you can see for which array the first and the second value in the [] after matrix stand, helps understanding better.
1 parent 2092da7 commit f684d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/04-array/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ let matrix = [
426426
[7, 8, 9]
427427
];
428428

429-
alert( matrix[1][1] ); // 5, the central element
429+
alert( matrix[0][1] ); // 2, the second value of the first inner array
430430
```
431431

432432
## toString

0 commit comments

Comments
 (0)