Created
April 10, 2014 00:52
-
-
Save benwillkommen/10334240 to your computer and use it in GitHub Desktop.
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
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