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
Get step-by-step solutions from verified subject matter experts
