Created
June 26, 2015 16:52
-
-
Save itochan/5502364cf7bf5b68331b 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
function fizzBuzz() { | |
for (var i = 1; i <= 30; i++) { | |
if (i % 15 == 0) { | |
alert('Fizz Buzz'); | |
} else if (i % 3 == 0) { | |
alert ('Fizz'); | |
} else if (i % 5 == 0) { | |
alert('Buzz'); | |
} else { | |
alert(i); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment