Skip to content

Instantly share code, notes, and snippets.

@benwillkommen
Created April 17, 2014 00:09
Show Gist options
  • Save benwillkommen/10943864 to your computer and use it in GitHub Desktop.
Save benwillkommen/10943864 to your computer and use it in GitHub Desktop.
var myAge = 27;
var maxAge = 100;
var coffeePerDay = 2;
var lifetimeSupply = (maxAge - myAge) * coffeePerDay * 365;
if (lifetimeSupply > 40000){
alert("you drink too much coffee");
} else {
alert("you'll probably be fine");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment