class MyClass {
static myStaticMethod() {
console.log(MyClass.myStaticProperty);
}
static myStaticProperty = "This is a static property";
myInstanceMethod() {
console.log("This is an instance method");
}
}
MyClass.myStaticMethod();
const myInstance = new MyClass();
myInstance.myInstanceMethod();
myInstance.myStaticMethod();