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

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!