Created
February 18, 2025 17:53
-
-
Save EverlastingBugstopper/45fdbf12b7115643153bcec23112dde0 to your computer and use it in GitHub Desktop.
fun fizz buzz one-liner
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
| const fizzBuzz = (length) => Array.from({ length }, (_, i) => i++).forEach((i) => console.log(`${i % 3 === 0 ? "Fizz" : ""}${i % 5 === 0 ? "Buzz" : ""}` || i)) | |
| fizzBuzz(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment