From f684d39c7339fdea52ac9159b8e0ec0e0f20c5b2 Mon Sep 17 00:00:00 2001 From: sneeed <55649412+sneeed@users.noreply.github.com> Date: Sat, 8 Jun 2024 14:52:05 +0200 Subject: [PATCH] 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-js/05-data-types/04-array/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/04-array/article.md b/1-js/05-data-types/04-array/article.md index ee2e3d7132..e71e86a5b9 100644 --- a/1-js/05-data-types/04-array/article.md +++ b/1-js/05-data-types/04-array/article.md @@ -426,7 +426,7 @@ let matrix = [ [7, 8, 9] ]; -alert( matrix[1][1] ); // 5, the central element +alert( matrix[0][1] ); // 2, the second value of the first inner array ``` ## toString