Consider the following class declaration. How can you define a static property in the class?
class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}
static area;
}
Consider the following class declaration. How can you define a static property in the class?
class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}
static area;
}