reorganizing some more

This commit is contained in:
brightboost
2021-12-01 14:39:18 +01:00
parent f8bde27fc6
commit 9116b55477
37 changed files with 998 additions and 679 deletions
+34
View File
@@ -0,0 +1,34 @@
for (let i = 0; i < 10; i++) {
console.log(i);
}
let arr = [];
for (let i = 0; i < 100; i++) {
arr.push(i);
}
let arr = [];
for (let i = 0; i < 100; i = i + 2) {
arr.push(i);
}
let arrOfArrays = [];
for (let i = 0; i < 3; i++) {
arrOfArrays.push([]);
for (let j = 0; j < 7; j++) {
arrOfArrays[i].push(j);
}
}
console.log(arrOfArrays);
let names = ["chantal", "john", "maxime", "bobbi", "jair"];
for (let i = 0; i < names.length; i++) {
console.log(names[i]);
}
//let names = ["chantal", "john", "maxime", "bobbi", "jair"];
for (let i = 0; i < names.length; i++) {
names[i] = "hello " + names[i];
}
console.log(names);