Created
April 3, 2019 03:44
-
-
Save ryu1-1uyr/3582c1943a109a20bfcf90b997df6f4d 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
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