Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Array.apply(null, Array(15))
.map((_, i) => i + 1)
.map(i =>
[i, "Fizz", "Buzz", "FizzBuzz"][!(i % 3) + 2*!(i % 5)]
)
.forEach(::console.log)
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.