An intergalactic age and date calculator using Javascript.
- Take a person’s age in years and convert it into seconds.
- Take two dates and determine the difference, in seconds, between the two. (This way a user can enter a birthdate and the application can compare the birthdate against the current time to come up with an accurate age.)
- Return the age of a human in Mercury years. (A Mercury year is .24 Earth years.)
- Return the age of a human in Venus years. (A Venus year is .62 Earth years.)
- Return the age of a human in Mars years. (A Mars year is 1.88 Earth years.)
- Return the age of a human in Jupiter years. (A Jupiter year is 11.86 Earth years.)
- Determine how many years a user has left to live on each planet by calculating the user’s life expectancy.
- If a user has already surpassed the average life expectancy, return the number of years they have lived past the life expectancy.
None, currently.
Send questions to Andrew at mailto:[email protected]
*Javascript *Node *Karma *Jasmine *Babel *jQuery-3.3.1 *HTML5 *CSS3 *Bootstrap-4.1.1
- Published under the MIT License.
Copyright (c) 2018 Andrew Lupton