A JavaScript program to calculate your age on other planets! Includes support for all 8 planets (sorry, Pluto). Can also calculate your life expectancy (ish) on each planet! Full specs below :
SPEC | EXAMPLE INPUT | EXAMPLE OUTPUT |
---|---|---|
The program takes in an input for age, gender, and SES | 22, M, Middle | /// |
A more precise age (in days) can be set given a birthday | 7/25/1997 | Your age in days is: 8148 (Nov 15, 2019) |
The program can return an age in any planet's "years" | Mercury // Jupiter | 22 years is 91.31 Mercury years // 1.85 Jupiter years |
The program can return the remaining life expectancy (in years) for each planet | Mars | 28.92 Mars years left |
If the user has exceeded their life expectancy, the program returns by how much | (M, 100) for Venus | surpassed life expectancy by 38.28 years |
- Clone this github repository
- Open the project directory in terminal
- Run 'npm install'
- Run 'npm run build' and open the index in dist/, or 'npm run start' to see the main page
- Enjoy!
For questions, comments, concerns, or confessions, please reach out to me at: [email protected]
- HTML5
- CSS
- Bootstrap
- JavaScript
- jQuery
- Node Package
- Jest
- Webpack
This software is licensed under the MIT License.
Copyright (c) 2019 Jaime Gensler