Skip to content

Instantly share code, notes, and snippets.

@benwillkommen
Created April 10, 2014 00:52
Show Gist options
  • Save benwillkommen/10334240 to your computer and use it in GitHub Desktop.
Save benwillkommen/10334240 to your computer and use it in GitHub Desktop.
var myAge = 27;
var maxAge = 100;
var coffeePerDay = 2;
var lifetimeSupply = (maxAge - myAge) * coffeePerDay * 365;
var message = "You will need " + lifetimeSupply + " cups of coffee to last until your old age of " + maxAge;
alert(message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment