A solar year lasts 365 days on planet Earth. However, the length of a solar year varies from planet to planet. For instance, a solar year on Mercury lasts 88 days.
This is an application that determines a user’s age based on a planet’s solar years.
- Take in the user's DOB and find the user's age in Earth years.
- The program will return the user's age in Mercury years. (A Mercury year is .24 Earth years.)
- The program will return the user's age in Venus years. (A Venus year is .62 Earth years.)
- The program will return the user's age in Mars years. (A Mars year is 1.88 Earth years.)
- The program will return the user's age in Jupiter years. (A Jupiter year is 11.86 Earth years.)
- The program will calculate the user’s life expectancy on each planet using the average life expectancy for their demographic on Earth.
- The program will determines how many years a user has left to live on each planet.
- If a user has already surpassed the average life expectancy, the program will return the number of years they have lived past the life expectancy.
- Clone this repository:
$ git clone https://github.com/sn31/super-galactic-age-calculator.git
- Change into the work directory:
$ cd super-galactic-age-calculator
- Install dependencies:
$ npm install
- To build the program:
$ npm run build
- To start the development server on localhost:8080:
$ npm run start
- To run the tests using Karmin on localhost:9876:
$ npm test
Please contact us at skye@dames.es for more information and/or feedback.
- JavaScript
- npm
- Karmin & Jasmine
- Git
- GitHub