Find the volume of rectangular right wedge | function to return volume of rectangular right wedge ; Driver code
function volumeRec ( a , b , e , h ) { return ( ( ( b * h ) / 6 ) * ( 2 * a + e ) ) ; } let a = 2 ; let b = 5 ; let e = 5 ; let h = 6 ; document . write ( " " + volumeRec ( a , b , e , h ) . toFixed ( 1 ) ) ;