Guest User

Untitled

a guest
Mar 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. function solution(number){
  2. let result = 0;
  3.  
  4. for(let i = 0; i < number; i++) {
  5. if ((i % 3 === 0) || (i % 5 === 0)) {
  6. result += i;
  7. }
  8. }
  9. return result;
  10. }
Add Comment
Please, Sign In to add comment