Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given | Function to find the area of quadrilateral ; Driver code
function Area ( d , h1 , h2 ) { let area ; area = 0.5 * d * ( h1 + h2 ) ; return area ; } let d = 6 , h1 = 4 , h2 = 3 ; document . write ( " " + ( Area ( d , h1 , h2 ) ) ) ;