class Boxes {
constructor(x, y, z, color) {
this.x1 = x;
this.y1 = y;
this.z1 = z;
this.color = color;
}
inBox() {
z = 10;
if (res = this.x1 * this.y1 * this.z1 != z) {
return false;
} else {
return true;
}
}
}
console.log(Box.inBox())