-
-
Save THEtheChad/287ab455c1a84cc5cf84 to your computer and use it in GitHub Desktop.
A functional lookup to help you determine what to do when it's hot, based on your sitch. Original by Sir Coty Beasley.
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 mySitch(situation){ | |
var holla = 'I got the rolly on my arm and I\'m pouring Chandon.'; | |
if(mySitch.LOOKUP.hasOwnProperty(situation)){ | |
holla = [mySitch.LOOKUP[situation], mySitch.SUFFIX].join(' '); | |
} | |
alert(holla); | |
} | |
mySitch.LOOKUP = { | |
'pigs' : 'Park it', | |
'pimps' : 'Drop it', | |
'ngAttitude' : 'Pop it' | |
}; | |
mySitch.SUFFIX = 'like it\'s hot.'; | |
mySitch('pigs'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment