13 lines
227 B
Groff
13 lines
227 B
Groff
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);
|
|
}
|