Program to calculate Area Of Octagon | Utility function ; Driver Code
function areaOctagon ( side ) { return ( 2 * ( 1 + Math . sqrt ( 2 ) ) * side * side ) ; } let side = 4 ; document . write ( " " + areaOctagon ( side ) + " " ) ;