Skip to content

Instantly share code, notes, and snippets.

@web20opensource
Created April 10, 2015 21:03
Show Gist options
  • Save web20opensource/8d114e08f875898af572 to your computer and use it in GitHub Desktop.
Save web20opensource/8d114e08f875898af572 to your computer and use it in GitHub Desktop.
var sum = 0; for(var i=0 ; i<1000 ; i++){if (!(i%3) or !(i%5) ) sum+=i} console.log(sum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment