This project was created for the 11th week of Epicodus. This will utilize Node based testing. The user will give their birthday and the app will return their age on various planets.
Spec | Input | Output | Reasoning |
---|---|---|---|
Will return Birth Date | User input: "10-13-1989" | Output: "10-13-1989" | Reasoning: The user can input their birthday and see it |
Returns rounded up age | User input: "10-13-1989" | Output: "30" | Reasoning: The user can input birthday and will receive rounded up age. |
Returns age on Mercury | User input: "10-13-1989" | Output: "7" | Reasoning: The user can input birthday and will receive rounded up age on Mercury. |
Returns age on Venus | User input: "10-13-1989" | Output: "19" | Reasoning: The user can input birthday and will receive rounded up age on Venus. |
Returns age on Mars | User input: "10-13-1989" | Output: "56" | Reasoning: The user can input birthday and will receive rounded up age on Mars. |
Returns age on Jupiter | User input: "10-13-1989" | Output: "356" | Reasoning: The user can input birthday and will receive rounded up age on Jupiter. |
Returns time left alive | User input: "10-13-1989" | Output: "-49" | Reasoning: The user can input birthday and will receive years left to live. |
- Clone this repository: $ git clone >repo name here<
- Change into the work directory: $ cd GalacticAgeCalculator
- In console type: npm install
- In console type: npm test
This is not a full app and is built for testing purposes only. Trying to run it will return nothing as it has no interface.
If you have any issues please contact Brendan Hellar at bwhellar@gmail.com
Javascript
MIT
Copyright (c) 2019 Brendan Hellar