This commit is contained in:
Karan
2021-11-25 20:26:58 +05:30
parent 1a19d738a9
commit 569d90f511
52 changed files with 0 additions and 177 deletions
+12
View File
@@ -0,0 +1,12 @@
const myArray = [];
for (let x = 0; x < 10; x++) {
myArray.push(x + 1);
}
console.log(myArray);
for (let i = 0; i < myArray.length; i++) {
console.log(myArray[i]);
}
for (let val of myArray) {
console.log(val);
}