Program to calculate volume of Octahedron | utility Function ; Driver Function
function vol_of_octahedron ( side ) { return ( ( side * side * side ) * ( Math . sqrt ( 2 ) / 3 ) ) ; } let side = 3 ; document . write ( " " + vol_of_octahedron ( side ) . toFixed ( 4 ) ) ;