Created
May 11, 2016 19:12
-
-
Save anonymous/1a65fc1022807cc9766b9a76a544ba7b 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
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); | |
} | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">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); | |
} | |
}</script></body> | |
</html> |
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