SOURCE

const a = { "name": "wandou" }
const protoA = Object.getPrototypeOf(a)
console.log(protoA.constructor===Object)


function A(name) {
    this.name = name;
}

const b = new A("wandou")
const protoB = Object.getPrototypeOf(b)
console.log(protoB.constructor === A)
console.log(b.constructor === A)
console 命令行工具 X clear

                    
>
console