Program for Area And Perimeter Of Rectangle | Utility function ; Driver program
function areaRectangle ( a , b ) { let area = a * b ; return area ; } function perimeterRectangle ( a , b ) { let perimeter = 2 * ( a + b ) ; return perimeter ; } let a = 5 ; let b = 6 ; document . write ( " " + areaRectangle ( a , b ) + " " ) ; document . write ( " " + perimeterRectangle ( a , b ) ) ;