Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.