Program for Volume and Surface Area of Cube | utility function ; Driver function
function areaCube ( a ) { return ( a * a * a ) ; } function surfaceCube ( a ) { return ( 6 * a * a ) ; } let a = 5 ; document . write ( " " + areaCube ( a ) + " " ) ; document . write ( " " + surfaceCube ( a ) ) ;