📅  最后修改于: 2022-03-11 15:01:42.501000             🧑  作者: Mango
function solution(number){
var sum = 0;
for(var i = 1;i< number; i++){
if(i % 3 == 0 || i % 5 == 0){
sum += i
}
}
return sum;
}