Last active
February 24, 2019 02:01
-
-
Save eprislac/c99b7a344e69adf3fea19b28d1fb6256 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
// num is a whole number Integer | |
(const fizzbuzziness = (num) => { | |
if((num % 3 === 0) && (num % 5 === 0)) { | |
return 'FizzBuzz' | |
} else if(num % 3 === 0) { | |
return 'Fizz' | |
} else if(num % 5 === 0) { | |
return 'Buzz' | |
} else { | |
return '' | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment