Skip to content

Instantly share code, notes, and snippets.

@cdl
Created August 14, 2013 06:29
Show Gist options
  • Save cdl/6228496 to your computer and use it in GitHub Desktop.
Save cdl/6228496 to your computer and use it in GitHub Desktop.
var times = 100;
for (var i = 0;i < times; i++) {
if (i % 3 == 0) {
console.log("foo");
} else if (i % 5 == 0) {
console.log("bar");
} else if (i % 3 == 0 && i % 5 == 0) {
console.log("baz");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment