Skip to content

Instantly share code, notes, and snippets.

@ryu1-1uyr
Created April 3, 2019 03:44
Show Gist options
  • Save ryu1-1uyr/3582c1943a109a20bfcf90b997df6f4d to your computer and use it in GitHub Desktop.
Save ryu1-1uyr/3582c1943a109a20bfcf90b997df6f4d to your computer and use it in GitHub Desktop.
ネタを仕込む
for (let num = 1 ; num < 31;num++){
console.log(
(n => (str => (x=>x||n)(n % 5 ? str : `${str}Buzz`))
((str => n % 3 ? str : `${str}Fizz`)(""))
)(num)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment