Skip to content

1

DevGod
DevGod
Vtuber
let mySet = new Set();
for(let I = 0; I<1000; I++){
if(I%3 == 0 && I%5 == 0){
mySet.add(I);
}
}
let score = [...mySet].reduce( (sum,el)=>sum+el, 0);
console.log(score);