Inside a box

Report a typo

Create a box object that has three numeric properties to store its measurements: length, width, and height. Assign the values 20, 30, and 15 to these properties accordingly.

In addition, you need to create getVolume method, which should return the volume of the box, as the fourth property of the object.

Write a program in JavaScript
// write your object here
___

Create a free account to access the full topic