@@ -0,0 +1,9 @@
|
||||
const myArray = [];
|
||||
for (let x = 0; x < 10; x++) {
|
||||
myArray.push(x + 1);
|
||||
}
|
||||
console.log(myArray);
|
||||
|
||||
for (let val of myArray) {
|
||||
console.log(val);
|
||||
}
|
||||
Reference in New Issue
Block a user