Last active
February 25, 2019 19:40
-
-
Save mateusmlo/db7dca46b2418a3eee85488f73a87248 to your computer and use it in GitHub Desktop.
Revisions
-
mateusmlo revised this gist
Feb 25, 2019 . No changes.There are no files selected for viewing
-
mateusmlo revised this gist
Feb 25, 2019 . No changes.There are no files selected for viewing
-
mateusmlo revised this gist
Feb 25, 2019 . No changes.There are no files selected for viewing
-
mateusmlo created this gist
Feb 25, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ const checkFizzBuzz = n => { if (n % 3 === 0 && n % 5 === 0) return 'Fizz Buzz'; if (n % 3 === 0) return 'Fizz'; if (n % 5 === 0) return 'Buzz'; return n; } const oneToHundred = [...Array(101).keys()].slice(1); const getFizzBuzz = oneToHundred.map(checkFizzBuzz);