Created
April 29, 2020 13:16
-
-
Save amandabot/86033bda2292dff779ed4346e490a488 to your computer and use it in GitHub Desktop.
Asks, "Where's the money?" in randomized casing
This file contains 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
function requestMoneyLocation() { | |
return Object.values(`where's the money?`).reduce((acc, curr) => { | |
return acc + (Math.random() > 0.5 ? curr.toUpperCase() : curr); | |
}, ''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment