This is a constructor function,and it has two instance object,then I change them with different depth,but result I can't understand.if someone encounter this problem,hope you can help me,thanks.
let C = function () {}
C.prototype = Object.create({
option: {
name: 'c'
}
})
let c1 = new C()
let c2 = new C()
c1.option.name = 'new_c'
console.log(c2.option.name)
// --> new_c
c1.option = null
console.log(c2.option.name)
// --> new_c