Skip to content

Instantly share code, notes, and snippets.

@kazuho
Created August 9, 2012 03:08
Show Gist options
  • Star 107 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save kazuho/3300555 to your computer and use it in GitHub Desktop.
Save kazuho/3300555 to your computer and use it in GitHub Desktop.
fizz = function f() {
fizz = function () {
fizz = function () {
fizz = f
return "Fizz"
}
}
}
buzz = function f() {
buzz = function () {
buzz = function () {
buzz = function () {
buzz = function () {
buzz = f
return "Buzz"
}
}
}
}
}
n = 0
fizzbuzz = function () {
++n
console.log((fizz() || "") + (buzz() || "") || n)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment