Volume of cube using its space diagonal | Function to calculate Volume ; Formula to find Volume ; space diagonal of Cube
function CubeVolume ( d ) { let Volume ; Volume = ( Math . sqrt ( 3 ) * Math . pow ( d , 3 ) ) / 9 ; return Volume ; } let d = 5 ; document . write ( " " + CubeVolume ( d ) . toFixed ( 4 ) ) ;