Calculation of area of a triangle by Heron 's formula
function area ( a , b , c ) { let p = ( a + b + c ) / 2 ; return Math . sqrt ( p ) * Math . sqrt ( p - a ) * Math . sqrt ( p - b ) * Math . sqrt ( p - c ) ; }