Question: 1. Write a JavaScript function called pyramidVolume that returns the volume of a pyramid given its length, width and height. Test your function with the
1. Write a JavaScript function called pyramidVolume that returns the volume of a pyramid given its length, width and height. Test your function with the following data.
pyramidVolume(10, 10, 10) returns 333.33
pyramidVolume(25, 15, 10) returns 1000
2. Rewrite the above function as an arrow function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
