-
-
Save alvin-milton/65339f5d5330e029a168ddd0c7520a65 to your computer and use it in GitHub Desktop.
JS Bin// source http://jsbin.com/gutewic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 1; | |
for (i; i <= 100; i++) { | |
if ((i % 3 === 0) && (i % 5 === 0)) { | |
console.log('fizzbuzz'); | |
} else if (i % 5 === 0) { | |
console.log('buzz'); | |
} else if (i % 3 === 0) { | |
console.log('fizz'); | |
} else { | |
console.log(i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment