Skip to content

Instantly share code, notes, and snippets.

@arc64
Created December 12, 2018 18:48
Show Gist options
  • Select an option

  • Save arc64/26cdd09c68b01ef8116409a0cdadf61a to your computer and use it in GitHub Desktop.

Select an option

Save arc64/26cdd09c68b01ef8116409a0cdadf61a to your computer and use it in GitHub Desktop.
var CracklePop = function(){
for(var num = 1; num <= 100; num ++) {
if(num%3 == 0 && num%5 == 0) {
console.log("CracklePop");
} else if (num%5 == 0) {
console.log("Pop");
} else if (num%3 == 0){
console.log("Crackle");
} else {
console.log(num);
}
}
};
CracklePop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment