Marko 1 year ago
parent
commit
5b938581b2
1 changed files with 5 additions and 7 deletions
  1. 5 7
      file.js

+ 5 - 7
file.js

@@ -175,16 +175,14 @@ for(i = 0,arr = [];i <= 100; i++){
     console.log(arr[i])}
 
 // multiply table
-
-debugger
-let result = '';
-for (let f = 1;f < 10; f++){
+var multTable = [];
+for (let i = 1;i < 10; i++){
+    multTable[i] = []
     for(let j = 1; j < 10; j++){
-         result += [f*j] + ' ';
+        multTable[i][j] = i * j;
     }
-    result += '\n'
 }
-console.log(result)
+