编辑代码

//程序运行完成时一定要有输出语句,本工具才能正确展示运行结果。 
function A() {
    this.haha = 1;
    console.log('This is A fucntion.');
}
class B {
    constructor() {
        console.log('This is B class');
    }
}
let a = new A();
let b = new B();

console.log(a.__proto__);
console.log(a.constructor);
console.log(a.__proto__.__proto__.constructor);


console.log(b.__proto__);
console.log(b.constructor);