Skip to content

Instantly share code, notes, and snippets.

@THEtheChad
Forked from beacrea/whenToDropIt.js
Last active August 29, 2015 14:05
Show Gist options
  • Save THEtheChad/287ab455c1a84cc5cf84 to your computer and use it in GitHub Desktop.
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.
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