Write a complete JavaScript program to prompt the user for the radius of a sphere, and call function sphereVolume to calculate and display the volume of the sphere. Use the statement? Volume = ( 4.0 / 3.0 ) * Math.PI * Math.pow( radius, 3 ); to calculate the volume. The user should input the radius through an HTML text field
And click an XHTML button to initiate the calculation.
Radius.html
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer