. Write a JavaScript function named CalcVol() to calculate the volume of a rectangular solid. The..

Click here to place your order NOW…………………………….

1.       Write a JavaScript function named CalcVol() to calculate the volume of a rectangular solid. The function should have three parameters named x, y, and z, and should return the value of a variable named Vol that is equal to x*y*z.

2.       Write the JavaScript statement to call the CalcVol() function with values of x = 3, y = 10, and z = 4, storing the result of the function in a variable named TotalVol.

Leave a Reply

Your email address will not be published. Required fields are marked *