fork download
  1. function test1() {
  2. let total = [];
  3.  
  4. for(let i = 1; i <= 25; i++) {
  5. if (i % 3 == 0) {
  6. total += i;
  7. } else if (i % 5 == 0) {
  8. total += i;
  9. }
  10. }
  11.  
  12. return total;
  13. }
  14.  
  15. test1();
Success #stdin #stdout 0.04s 18652KB
stdin
Standard input is empty
stdout
Standard output is empty