The triangle tracker is a website that allows users to enter three values and determines if it is a triangle or not. If so, the tracker returns the name of the kind of triangle the sides make (equilateral, isosceles, scalene).
The project runs on a browser,It is a calculator that is configured to take in three values and by using the javascript if and else if statement it can find out if the triangle is equilateral,scalene,or isosceles or if not a triangle at all.
Behaviour | Input | Output |
---|---|---|
Input of different values | 4,6,3 | Scalene Triangle |
Input of two equal values | 6,8,8 | Isosceles Triangle |
Input of three equal values | 9,9,9 | Equilateral Triangle |
Input of two sides than are not greater than the third | 1,2,3 | Not a triangle |
Here is a link to a live demo:[id]:https://nziokaivy.github.io/triangle-tracker/
Install triangle-tracker by cloning this repository: https://github.com/nziokaivy/triangle-tracker/tree/roughwork
Incase of any bugs:-
- Fork a repo
- Create a new branch (git checkout -b improve-feature)
- Make the appropriate changes in the files
- Add changes to reflect the changes made
- Commit your changes (git commit -m "Improve feature"
- Push to the branch (git push origin improve-feature)
- Create a Pull Request
- HTML
- CSS
- Javascript
If you have any issues feel free to contact me at [email protected].
MIT License. Copywright (c) 2018 Ivy Nzioka.