Получение ошибки о недопустимом возврате на томе ...
попытался добавить CuboidMaker15.volume для вызова объекта
class CuboidMaker15 {
constructor(cuboidMaker15Attributes){
this.length = cuboidMaker15Attributes.length;
this.width = cuboidMaker15Attributes.width;
this.height = cuboidMaker15Attributes.height;
}
}
volume(); {
return this.length * this.width * this.height;
}
surfaceArea(); {
return 2 * (this.length * this.width + this.length * this.height + this.width * this.height);
}
const cuboid15 = new CuboidMaker15({
length: 4,
width: 5,
height: 5
});
Говорит, что объем не определен ...