SOURCE

class Foo {
    static name = "Foo";

    static classMethod() {
        return 'hello';
    }
}

class Bar extends Foo {
    static say() {
        return super.classMethod() + ', too';
    }

    private walk() {
        
    }
}

console.log(Bar.classMethod());
console.log(Bar.say());
console.log(Foo.name);
console 命令行工具 X clear

                    
>
console