diff --git a/5/5,5.js b/5/5,5.js new file mode 100644 index 0000000..2fda32c --- /dev/null +++ b/5/5,5.js @@ -0,0 +1,15 @@ +const grid = []; +const cells = 64; +let counter = 0; +let row; +for (let x = 0; x < cells + 1; x++) { + if (counter % 8 == 0) { + if (row != undefined) { + grid.push(row); + } row = []; + } + counter++; + let temp = counter; + row.push(temp); +} +console.table(grid); \ No newline at end of file