Last active
August 29, 2015 14:11
-
-
Save fsubal/68a8dd0f43eef8c06a68 to your computer and use it in GitHub Desktop.
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
function fizzbuzz() { | |
for(var i=1; i<100; i++){ | |
var n = [i,"",""]; | |
if(i%3 == 0){ n[0]=""; n[1]="Fizz"; } | |
if(i%5 == 0){ n[0]=""; n[2]="Buzz"; } | |
console.log(n.join("")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if( i%15 == 0 ) だけは絶対に書きたくないという強い気持ち