Created
June 22, 2016 07:41
-
-
Save KCreate/56694b2d9287b4f565cbed288b3bf608 to your computer and use it in GitHub Desktop.
How the microsoft marketing team generates new names.
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
const microsoft = function(name) { | |
const microsoft = (Math.random() < 0.5) ? 'microsoft ' : ''; | |
const smart = (Math.random() < 0.5) ? 'smart ' : ''; | |
const center = (Math.random() < 0.5) ? ' center' : ''; | |
const fullname = microsoft + smart + name + center; | |
return fullname.trim(); | |
} | |
module.exports = microsoft; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment