let arr = []
for (let i = 1; i < 101; i++) {
arr.push(i)
}
function fooBar(arr) {
let foo = []
let bar = []
let foobar = []
for (let a = 1 ; a < 101; a++) {
if (a % 3 == 0) {
foo.push(a)
}
}
for (let a = 1 ; a < 101; a++) {
if (a % 5 == 0) {
bar.push(a)
}
}
for (let a = 1 ; a < 101; a++) {
if (a % 3 == 0 || a % 5 == 0) {
foobar.push(a)
}
}
alert(`Foo(value /3) = ${foo}`)
alert(`Bar(value /5) = ${bar}`)
alert(`FooBar(value /3 and /5) = ${foobar}`)
}
fooBar(arr)