Program to calculate area and volume of a Tetrahedron | Function to calculate volume ; Driver Code
function vol_tetra ( side ) { let volume = ( Math . pow ( side , 3 ) / ( 6 * Math . sqrt ( 2 ) ) ) ; return volume ; } let side = 3 ; let vol = vol_tetra ( side ) ; vol = Math . round ( vol * 100 ) / 100 ; document . write ( vol ) ;