let arrayOfNums = [];
for (let i = 1; i <= 100; i++) {
arrayOfNums[i] = i;
if (i % 3 == 0) {
// alert(i + " Foo");
arrayOfNums[i] = "Foo";
}
if (i % 5 == 0) {
// alert(i + " bar");
arrayOfNums[i] = "bar";
}
if (i % 3 == 0 && i % 5 == 0) {
// alert(i + " Foobar")
arrayOfNums[i] = "Foobar";
}
}
console.log(arrayOfNums);