Signed-off-by: Alice <Svfoxel@yandex.ru>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
let strings = 20;
|
||||
let columns = 10;
|
||||
|
||||
let myTable = [];
|
||||
let counter = 0;
|
||||
|
||||
for (let y = 0; y < columns; y++){
|
||||
let tempTable = [];
|
||||
for(let x = 0; x < strings; x++){
|
||||
counter++;
|
||||
tempTable.push(counter);
|
||||
}
|
||||
myTable.push(tempTable);
|
||||
}
|
||||
console.table(myTable);
|
||||
Reference in New Issue
Block a user