A JS application by Henry Oberholtzer
- JavaScript
- SASS
- HTML
- CSS
- Webpack
- Jest
This projects uses a JS class constructor and methods to return a users age based on a the orbit of a chosen celestial object.
- Uses a class to return a users age on Mercury (Mercurial orbital period is 88 earth days)
- Uses a class to return a users age on Venus (Venusian orbital period is 225 earth days)
- Uses a class to return a users age on Mars (Martian orbital period is 687 earth days)
- Uses a class to return a users age on Jupiter (Jovian orbital period is 4,332.59 earth days)
- Uses a class to determine how many years on their chosen planet have passed since their chosen earth birthday
- Uses a class to determine how many years on their chosen planet will need to pass until their chosen earth birthday
- Uses a class to return a users age on Saturn (Saturnian orbital period is 10,756 earth days)
- Uses a class to return a users age on Uranus (Uranian orbital period is 30,687 earth days)
- Uses a class to return a users age on Neptune (Neptunian orbital period is 60,190 earth days)
- Uses a class to return a users age on Pluto (Plutonian orbital period is 90,650 earth days)
- Uses a class to return a users age on the Moon (Lunar orbital period around earth is 354.36 earth days)
- Download the zip folder from GitHub
- Alternatively clone the project using
git clone https://github.com/henry-oberholtzer/solar-system-age.git
- Open the folder in Terminal or your preffered coding interface, run
npm install
to download necessary packages before proceeding - To view the application run
npm run start
- Alternatively - check out the application on GitHub Pages
- The test suite can be run using
npm run test
- Not formatted for web.
- Gradient text not cross-browser compatible.
Copyright Henry Oberholtzer (c) 2023 Code licensed under GNU GPLv3