Created
May 31, 2015 20:12
-
-
Save cem2ran/f3afca5dbe52577c347b to your computer and use it in GitHub Desktop.
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 range = ({start=0, end=1})=> [...Array(end - start + 1)].map((_, i) => start + i); | |
const fizzbuzz = (num=100) => [for (x of range({end: num})) (!(x%3)?"Fizz":'')+(!(x%5)?'Buzz':'')] | |
console.log(fizzbuzz(30)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment