Skip to content

Instantly share code, notes, and snippets.

@lgutie16
Last active August 21, 2017 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgutie16/7a52e068b4bdfe76c1f79e9322897d10 to your computer and use it in GitHub Desktop.
Save lgutie16/7a52e068b4bdfe76c1f79e9322897d10 to your computer and use it in GitHub Desktop.
Code CracklePop
for (let i = 1; i < 101; i++) {
if(i%3 === 0 && i%5 === 0) console.log('CracklePop')
else if(i%3 === 0) console.log('Crackle')
else if(i%5 === 0) console.log('Pop')
else console.log(i)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment