Question: Write a JavaScript function to compute and return the volume of a cone. Your function must have this header function coneVolume(radius, height) { The formula

Write a JavaScript function to compute and return the volume of a cone. Your function must have this header

function coneVolume(radius, height) {

The formula for computing the volume of a cone is

v =

?r2h3

where v is the volume, r is the radius, and h is the height of the cone. Hint: in JavaScript there is a constant named Math.P

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!