class Boxes {
constructor(x1, y1, z1, color) {
this.x1 = x1;
this.y1 = y1;
this.z1 = z1;
this.color = color;
}
inBox() {
res = 10;
if (this.x1 * this.y1 * this.z1 != res) {
return false;
} else {
return true;
}
}
}
let box = new Boxes(1, 2, 3)
console.log(Boxes.inBox())