/javascript-phase-1-percysibz

javascript-phase-1-percysibz created by GitHub Classroom

Primary LanguageJavaScript

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".