Perimeter and Area of Varignon 's Parallelogram | Function to find the perimeter ; Function to find the area ; Driver code
function per ( a , b ) { return ( a + b ) ; } function area ( s ) { return ( s / 2 ) ; } var a = 7 , b = 8 , s = 10 ; document . write ( per ( a , b ) ) ; document . write ( area ( s ) ) ;