1. Write a JavaScript function calledpyramidVolume that returns the volume of a pyramid given itslength, width and height. Test your function with the followingdata.
pyramidVolume(10, 10, 10) returns 333.33
pyramidVolume(25, 15, 10) returns 1000
2. Rewrite the above function as an arrowfunction.
Expert Answer
An answer will be send to you shortly. . . . .