Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 947 Bytes

File metadata and controls

19 lines (16 loc) · 947 Bytes

Javascript-basics

Note: Use the variable.js file, make sure you use the console for demoing your solutions

Important links to read on

  • Store your birth year in a variable.
  • Store a future year in a variable.
  • Calculate your 2 possible ages for that year based on the stored values.
  • Store your current age into a variable.
  • Store a maximum age into a variable.
  • Store an estimated amount per day (as a number).
  • Calculate how many you would eat total for the rest of your life.
  • Output the result to the screen like so: "You will need NN to last you until the ripe old age of X".