By Faisal Rana
This is a website that will take a persons earth age and demographics as inputs and output their age on Mercury, Venus, Mars and Juputer. The website will also output a life expectancy.
- HTML
- CSS
- Bootstrap
- Javascript
- jQuery
- Construcor function
- Prototype method
- ES6 Classes, Template Literals
- Webpack
- Jest
- Babel
- Lint
Please see Person.test.js in the tests folder for more detailed information. This is a rough plan that the program was conceptually started with.
- Test 1 - Checks to see if constructor is created correctly. Person();
- Test 2 - Returns age for Earth in years EarthAge();
- Test 3 - Returns age for Venus, Mercury, Mars and Juputer in years PlanetAge();
- Test 4 - Returns age for Mars in years
- Test 5 - Returns age in Jupiter in years
- Test 6 - Determines life expetency on earth and returns time left.
- Test 7 - Determines life expectency on other planets and returns time left.
- Test 8 - If a person has lived longer than the life expectancy, it will tell them how much longer they have lived.
To view, access the Github pages site in your preferred browser.
To setup:
- Clone this repository to your desktop
- Navigate to the top level of the directory
- Install Dependencies using npm install
- Create production environment with terminal command $ npm run build
- Lint code with the command $ npm run lint
- Run tests in Jest with the command $ npm test
- Run $npm start to launch index.html from dist folder in a browser, lint the code and clean up the directory
https://faisalrana.github.io/Project5a/
Copyright (c)2021 Faisal Rana