SOURCE

class User {
    constructor(job = '', method = []){
        //if(new.target = )
    }
}

class Person {
	constructor(name) {
		this.name = name
	}
    getName(){
        console.log(this.name)
    }
    static getPerson(){
        console.log('person')
    }
}
class Student extends Person {
    constructor(name,grade) {
        super(name)
        this.grade = grade
    }
    getName(){
        super.getName()
    }
    static getPerson(){
        super.getPerson()
    }
}

let student = new Student("张十三",12)
console.log(student)
student.getName()
student.getPerson()
console 命令行工具 X clear

                    
>
console