SHARE
TWEET

Untitled

a guest Jul 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(
  2.     var sum = 0, i = 1;
  3.     i < 1000;
  4.     !(i % 3 && i % 5) && (sum += i), i++
  5. );
  6. // Log the result
  7. console.log(sum);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top