Created
August 23, 2012 01:59
-
-
Save georgeOsdDev/3431249 to your computer and use it in GitHub Desktop.
FizzBuzz
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>$title</title> | |
$styles | |
</head> | |
<body> | |
<h1>$title</h1> | |
<pre> | |
console.log "FizzBuzz Start" | |
fizzbuzz = (x) -> | |
if x%15 is 0 | |
console.log "fizzbuzz!!" | |
else if x%3 is 0 | |
console.log "fizz" | |
else if x%5 is 0 | |
console.log "buzz" | |
else | |
console.log x | |
fizzbuzz i for i in [1..100] | |
</pre> | |
$scripts | |
</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
console.log "FizzBuzz Start" | |
fizzbuzz = (x) -> | |
if x%15 is 0 | |
console.log "fizzbuzz!!" | |
else if x%3 is 0 | |
console.log "fizz" | |
else if x%5 is 0 | |
console.log "buzz" | |
else | |
console.log x | |
fizzbuzz i for i in [1..100] |
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
body { | |
background: #eee; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FizzBuzz CoffeeScript
Created with CoffeeScript at Once