const myArray = [2];for(let i=1; i<=10; i++){myArray.push(10*i + 2);}console.log(myArray); // [ 2, 12, 22, 32, 42, 52, 62, 72, 82, 92, 102 ]
const myArray = [2];
for(let i=1; i<=10; i++){
myArray.push(10*i + 2);
}
console.log(myArray); // [ 2, 12, 22, 32, 42, 52, 62, 72, 82, 92, 102 ]