Last active
September 21, 2023 19:38
-
-
Save silasolla/fe5d3c4b856de5bd849d45348fa19524 to your computer and use it in GitHub Desktop.
One-liner FizzBuzz implementation written in JavaScript
This file contains hidden or 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
fizz_buzz = (fizz = f = () => (fizz = () => (fizz = () => (fizz = f) && "Fizz") && "") && "") && (buzz = g = () => (buzz = () => (buzz = () => (buzz = () => (buzz = () => (buzz = g) && "Buzz") && "") && "") && "") && "") && (n = 0) || (() => ++n && fizz() + buzz() || n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inspired by kazuho/fizzbuzz.js.