From f5df8f29fdcb915b84e47b6f36fb262805c4e088 Mon Sep 17 00:00:00 2001 From: Uktam1998 <57329542+Uktam19980416@users.noreply.github.com> Date: Sat, 29 Apr 2023 00:23:36 +0200 Subject: [PATCH] change startWithX variable into for loop --- nested_arrays_exercise/solution.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nested_arrays_exercise/solution.js b/nested_arrays_exercise/solution.js index 8e257c0..28af68d 100644 --- a/nested_arrays_exercise/solution.js +++ b/nested_arrays_exercise/solution.js @@ -8,8 +8,9 @@ function rotate(arr, num){ function makeXOGrid(rows,amount){ var finalArr = [] - var startWithX = true + for(var i=0; i