Question: Triangle perimeter and area Javascript LabWrite two functions: trianglePerimeter() and triangleArea(). Both functions have six integer parameters representing the coordinates of a triangle's three vertices.
Triangle perimeter and area Javascript LabWrite two functions: trianglePerimeter() and triangleArea(). Both functions have six integer parameters representing the coordinates of a triangle's three vertices. The trianglePerimeter() function should calculate the length of each side using the distance formula below. Then the function should return the sum of the three sides' length
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
