vladislavaSim 2 anos atrás
pai
commit
9245b980e9
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      HW8/main.js

+ 3 - 3
HW8/main.js

@@ -108,12 +108,12 @@ function createRow() {
         })
         $td.addEventListener('mouseout', (e) => rerenderColor(e, 'transparent'))
         $tr.appendChild($td)
-        console.log(j)
         if(j < 9) createCell()
     }
+    $table.appendChild($tr);
     createCell()
-    if(i > 1) createRow()
-    $table.appendChild($tr)
+    if(i > 1) createRow();
+
 }
 createRow()
 document.body.appendChild($table)