Program to find area of a Trapezoid | Function for the area ; Driver Code
function Area ( b1 , b2 , h ) { return ( ( b1 + b2 ) / 2 ) * h ; } let base1 = 8 , base2 = 10 , height = 6 ; let area = Area ( base1 , base2 , height ) ; document . write ( " " + area ) ;