Question: use javascript 5. (15 points) Use currying to rewrite the function below: - function cylinder_volume(r, h){ var volume = 0.0; volume = 3.14 * r
use javascript
5. (15 points) Use currying to rewrite the function below: -
function cylinder_volume(r, h){
var volume = 0.0;
volume = 3.14 * r * r * h;
return volume;
}
Use r = 5 and h = 10 to call your curried function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
