Created
January 14, 2016 07:03
-
-
Save TimBlock/52602317617e165b7e77 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 number = 0; | |
| for(var i = 1; i<=100; i++){ | |
| number = i; | |
| if(number % 5===0 && number % 3===0) console.log("Fizz Buzz"); | |
| else if(number % 5===0) console.log("Buzz"); | |
| else if(number % 3===0) console.log("Fizz"); | |
| else console.log(number); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment